Class: Minitest::Queue::QueuePopulationStrategy
- Inherits:
-
Object
- Object
- Minitest::Queue::QueuePopulationStrategy
- Defined in:
- lib/minitest/queue/queue_population_strategy.rb
Instance Attribute Summary collapse
-
#load_tests_duration ⇒ Object
readonly
Returns the value of attribute load_tests_duration.
-
#total_files ⇒ Object
readonly
Returns the value of attribute total_files.
Instance Method Summary collapse
-
#initialize(queue:, queue_config:, argv:, test_files_file:, ordering_seed:, preresolved_test_list: nil) ⇒ QueuePopulationStrategy
constructor
A new instance of QueuePopulationStrategy.
- #load_and_populate! ⇒ Object
Constructor Details
#initialize(queue:, queue_config:, argv:, test_files_file:, ordering_seed:, preresolved_test_list: nil) ⇒ QueuePopulationStrategy
Returns a new instance of QueuePopulationStrategy.
12 13 14 15 16 17 18 19 |
# File 'lib/minitest/queue/queue_population_strategy.rb', line 12 def initialize(queue:, queue_config:, argv:, test_files_file:, ordering_seed:, preresolved_test_list: nil) @queue = queue @queue_config = queue_config @argv = argv @test_files_file = test_files_file @ordering_seed = ordering_seed @preresolved_test_list = preresolved_test_list end |
Instance Attribute Details
#load_tests_duration ⇒ Object (readonly)
Returns the value of attribute load_tests_duration.
10 11 12 |
# File 'lib/minitest/queue/queue_population_strategy.rb', line 10 def load_tests_duration @load_tests_duration end |
#total_files ⇒ Object (readonly)
Returns the value of attribute total_files.
10 11 12 |
# File 'lib/minitest/queue/queue_population_strategy.rb', line 10 def total_files @total_files end |
Instance Method Details
#load_and_populate! ⇒ Object
21 22 23 24 |
# File 'lib/minitest/queue/queue_population_strategy.rb', line 21 def load_and_populate! load_tests populate_queue end |