Class: Mutant::Integration Private

Inherits:
Object
  • Object
show all
Includes:
AbstractType, Adamantium::Flat
Defined in:
lib/mutant/integration.rb,
lib/mutant/integration/null.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Abstract base class mutant test framework integrations

Direct Known Subclasses

Null

Defined Under Namespace

Classes: Null

Constant Summary collapse

LOAD_MESSAGE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

<<~'MESSAGE'
  Unable to load integration mutant-%<integration_name>s:
  %<exception>s
  You may have to install the gem mutant-%<integration_name>s!
MESSAGE
CONST_MESSAGE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

<<~'MESSAGE'
  Unable to load integration mutant-%<integration_name>s:
  %<exception>s
  This is a bug in the integration you have to report.
  The integration is supposed to define %<constant_name>s!
MESSAGE

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.setup(env) ⇒ Either<String, Integration>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Setup integration

Parameters:

Returns:



29
30
31
32
33
# File 'lib/mutant/integration.rb', line 29

def self.setup(env)
  attempt_require(env)
    .bind { attempt_const_get(env) }
    .fmap { |klass| klass.new(env.config).setup }
end

Instance Method Details

#all_testsEnumerable<Test>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Available tests for integration

Returns:

  • (Enumerable<Test>)


82
# File 'lib/mutant/integration.rb', line 82

abstract_method :all_tests

#callResult::Test

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Run a collection of tests

Parameters:

  • tests (Enumerable<Test>)

Returns:



77
# File 'lib/mutant/integration.rb', line 77

abstract_method :call

#setupself

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Perform integration setup

Returns:

  • (self)


68
69
70
# File 'lib/mutant/integration.rb', line 68

def setup
  self
end