Class: Mutant::Integration Private
- Inherits:
-
Object
- Object
- Mutant::Integration
- Includes:
- AbstractType, Adamantium::Flat
- Defined in:
- lib/mutant/integration.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
Defined Under Namespace
Classes: Null
Class Method Summary collapse
-
.setup(kernel, name) ⇒ Class<Integration>
private
Setup integration.
Instance Method Summary collapse
-
#all_tests ⇒ Enumerable<Test>
private
Available tests for integration.
-
#call ⇒ Result::Test
private
Run a collection of tests.
-
#setup ⇒ self
private
Perform integration setup.
Class Method Details
.setup(kernel, name) ⇒ Class<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
Integrations are supposed to define a constant under Mutant::Integration named after the capitalized name
parameter.
This avoids having to maintain a mutable registry.
21 22 23 24 |
# File 'lib/mutant/integration.rb', line 21 def self.setup(kernel, name) kernel.require("mutant/integration/#{name}") const_get(name.capitalize) end |
Instance Method Details
#all_tests ⇒ Enumerable<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
43 |
# File 'lib/mutant/integration.rb', line 43 abstract_method :all_tests |
#call ⇒ Result::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
38 |
# File 'lib/mutant/integration.rb', line 38 abstract_method :call |
#setup ⇒ self
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
29 30 31 |
# File 'lib/mutant/integration.rb', line 29 def setup self end |