Sha256: a229661fea0ac2f61f7e3ca4c6d5a3863f0228ac3d9ad06dfa58b9e484e832e6

Contents?: true

Size: 730 Bytes

Versions: 34

Compression:

Stored size: 730 Bytes

Contents

module ParallelTests
  class CLI
    def run_tests_in_parallel(num_processes, options)
      test_results = nil

      report_time_taken do
        groups = @runner.tests_in_groups(options[:files], num_processes, options)
        non_empty_groups = groups.reject {|group| group.empty?}
        Sauce::TestBroker.test_groups = non_empty_groups

        report_number_of_tests(non_empty_groups)

        test_results = execute_in_parallel(non_empty_groups, non_empty_groups.size, options) do |group|
          run_tests(group, Sauce::TestBroker.group_index(group), num_processes, options)
        end

        report_results(test_results)
      end

      abort final_fail_message if any_test_failed?(test_results)
    end
  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
sauce_ruby-3.5.11 lib/parallel_tests/cli_patch.rb
sauce_ruby-3.5.10 lib/parallel_tests/cli_patch.rb
sauce_ruby-3.5.9 lib/parallel_tests/cli_patch.rb
sauce_ruby-3.5.8 lib/parallel_tests/cli_patch.rb
sauce_ruby-3.5.7 lib/parallel_tests/cli_patch.rb
sauce_ruby-3.5.6 lib/parallel_tests/cli_patch.rb
sauce-3.5.6 lib/parallel_tests/cli_patch.rb
sauce-3.5.5 lib/parallel_tests/cli_patch.rb
sauce-3.5.4 lib/parallel_tests/cli_patch.rb
sauce-3.5.3 lib/parallel_tests/cli_patch.rb
sauce-3.5.2 lib/parallel_tests/cli_patch.rb
sauce-3.5.1 lib/parallel_tests/cli_patch.rb
sauce-3.5.0 lib/parallel_tests/cli_patch.rb
sauce-3.4.9 lib/parallel_tests/cli_patch.rb
sauce-3.4.8 lib/parallel_tests/cli_patch.rb
sauce-3.4.7 lib/parallel_tests/cli_patch.rb
sauce-3.4.6 lib/parallel_tests/cli_patch.rb
sauce-3.4.5 lib/parallel_tests/cli_patch.rb
sauce-3.4.4 lib/parallel_tests/cli_patch.rb
sauce-3.4.3 lib/parallel_tests/cli_patch.rb