Class: ParallelTests::FineGrainTest::Runner
- Inherits:
-
Test::Runner
- Object
- Test::Runner
- ParallelTests::FineGrainTest::Runner
- Defined in:
- lib/parallel_tests/fine_grain_test/runner.rb
Class Method Summary collapse
- .run_tests(_, process_number, num_processes, options) ⇒ Object
- .tests_in_groups(tests, num_groups, options = {}) ⇒ Object
Class Method Details
.run_tests(_, process_number, num_processes, options) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/parallel_tests/fine_grain_test/runner.rb', line 8 def run_tests(_, process_number, num_processes, ) require_list = @@tests.map { |file| file.sub(" ", "\\ ") }.join(" ") test_helper = File.("../test_helper", __FILE__) cmd = "#{executable} -Itest -e '%w[#{require_list}].each { |f| " \ "require %{./\#{f}}; require %{#{test_helper}}; " \ "}' -- #{[:test_options]}" execute_command(cmd, process_number, num_processes, ) end |
.tests_in_groups(tests, num_groups, options = {}) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/parallel_tests/fine_grain_test/runner.rb', line 17 def tests_in_groups(tests, num_groups, ={}) ParallelTests::FineGrainTest::FileQueue.new.reset results = super @@tests = results.flatten results end |