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-3.4.2 lib/parallel_tests/cli_patch.rb
sauce-3.4.1 lib/parallel_tests/cli_patch.rb
sauce-3.4.0 lib/parallel_tests/cli_patch.rb
sauce-3.3.2 lib/parallel_tests/cli_patch.rb
sauce-3.3.1 lib/parallel_tests/cli_patch.rb
sauce-3.3.0 lib/parallel_tests/cli_patch.rb
sauce-3.2.0 lib/parallel_tests/cli_patch.rb
sauce-3.1.3 lib/parallel_tests/cli_patch.rb
sauce-3.1.2 lib/parallel_tests/cli_patch.rb
sauce-3.1.1 lib/parallel_tests/cli_patch.rb
sauce-3.1.0 lib/parallel_tests/cli_patch.rb
sauce-3.0.6 lib/parallel_tests/cli_patch.rb
sauce-3.0.5 lib/parallel_tests/cli_patch.rb
sauce-3.0.4 lib/parallel_tests/cli_patch.rb