Class: Mutiny::Integration
- Inherits:
-
Object
- Object
- Mutiny::Integration
- Defined in:
- lib/mutiny/integration.rb,
lib/mutiny/integration/hook.rb,
lib/mutiny/integration/rspec.rb,
lib/mutiny/integration/rspec/hook.rb,
lib/mutiny/integration/rspec/test.rb,
lib/mutiny/integration/rspec/parser.rb,
lib/mutiny/integration/rspec/runner.rb,
lib/mutiny/integration/rspec/context.rb,
lib/mutiny/integration/rspec/test_set.rb
Direct Known Subclasses
Defined Under Namespace
Instance Attribute Summary collapse
-
#test_selection ⇒ Object
readonly
Returns the value of attribute test_selection.
Instance Method Summary collapse
-
#initialize(test_selection = Tests::Selection::Default.new) ⇒ Integration
constructor
A new instance of Integration.
- #test(mutant) ⇒ Object
Constructor Details
#initialize(test_selection = Tests::Selection::Default.new) ⇒ Integration
Returns a new instance of Integration.
8 9 10 |
# File 'lib/mutiny/integration.rb', line 8 def initialize(test_selection = Tests::Selection::Default.new) @test_selection = test_selection end |
Instance Attribute Details
#test_selection ⇒ Object (readonly)
Returns the value of attribute test_selection.
6 7 8 |
# File 'lib/mutiny/integration.rb', line 6 def test_selection @test_selection end |
Instance Method Details
#test(mutant) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/mutiny/integration.rb', line 12 def test(mutant) Isolation.call do selected_tests = test_selection.for(mutant, from: tests) run(selected_tests, fail_fast: true) end end |