Class: Minitest::Distributed::TestRunner
- Inherits:
-
Object
- Object
- Minitest::Distributed::TestRunner
- Extended by:
- T::Sig
- Defined in:
- lib/minitest/distributed/test_runner.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#coordinator ⇒ Object
readonly
Returns the value of attribute coordinator.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#test_selector ⇒ Object
readonly
Returns the value of attribute test_selector.
Instance Method Summary collapse
-
#initialize(options) ⇒ TestRunner
constructor
A new instance of TestRunner.
- #run(reporter) ⇒ Object
Constructor Details
#initialize(options) ⇒ TestRunner
Returns a new instance of TestRunner.
22 23 24 25 26 27 28 |
# File 'lib/minitest/distributed/test_runner.rb', line 22 def initialize() @options = @configuration = T.let(@options[:distributed], Configuration) @coordinator = T.let(configuration.coordinator, Coordinators::CoordinatorInterface) @test_selector = T.let(TestSelector.new(), TestSelector) end |
Instance Attribute Details
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
13 14 15 |
# File 'lib/minitest/distributed/test_runner.rb', line 13 def configuration @configuration end |
#coordinator ⇒ Object (readonly)
Returns the value of attribute coordinator.
19 20 21 |
# File 'lib/minitest/distributed/test_runner.rb', line 19 def coordinator @coordinator end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
10 11 12 |
# File 'lib/minitest/distributed/test_runner.rb', line 10 def @options end |
#test_selector ⇒ Object (readonly)
Returns the value of attribute test_selector.
16 17 18 |
# File 'lib/minitest/distributed/test_runner.rb', line 16 def test_selector @test_selector end |
Instance Method Details
#run(reporter) ⇒ Object
31 32 33 34 |
# File 'lib/minitest/distributed/test_runner.rb', line 31 def run(reporter) coordinator.produce(test_selector: test_selector) coordinator.consume(reporter: reporter) end |