Class: Mutant::Integration

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

Overview

Abstract base class mutant test framework integrations

Direct Known Subclasses

Null, Rspec

Defined Under Namespace

Classes: Null, Rspec

Constant Summary collapse

REGISTRY =
{}

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.lookup(name) ⇒ 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.

Lookup integration for name

Parameters:

  • name (String)

Returns:


18
19
20
# File 'lib/mutant/integration.rb', line 18

def self.lookup(name)
  REGISTRY.fetch(name).new
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.

Return all available tests by integration

Returns:

  • (Enumerable<Test>)

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

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.

Return test result for tests

Parameters:

  • tests (Enumerable<Test>)

Returns:


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

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)

43
44
45
# File 'lib/mutant/integration.rb', line 43

def setup
  self
end