Class: Mutant::Integration

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

Overview

Abstract base class mutant test framework integrations

Direct Known Subclasses

Null

Defined Under Namespace

Classes: Null

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:



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

def self.lookup(name)
  REGISTRY.fetch(name)
end

.setup(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.

Setup integration

Parameters:

  • name (String)

Returns:



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

def self.setup(name)
  require "mutant/integration/#{name}"
  lookup(name)
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>)


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

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:



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

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)


50
51
52
# File 'lib/mutant/integration.rb', line 50

def setup
  self
end