diff --git a/lib/simplecov.rb b/lib/simplecov.rb index d011a340..5300f707 100644 --- a/lib/simplecov.rb +++ b/lib/simplecov.rb @@ -257,7 +257,8 @@ def result_exit_status(result, covered_percent) # @api private # def final_result_process? - !defined?(ParallelTests) || ParallelTests.last_process? + # checking for ENV["TEST_ENV_NUMBER"] to determine if the tess are being run in parallel + !defined?(ParallelTests) || !ENV["TEST_ENV_NUMBER"] || ParallelTests.number_of_running_processes <= 1 end #