We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4822f0 commit a49f7feCopy full SHA for a49f7fe
lib/simplecov.rb
@@ -438,7 +438,12 @@ def make_parallel_tests_available
438
end
439
440
def probably_running_parallel_tests?
441
- ENV.fetch("TEST_ENV_NUMBER", nil) && ENV.fetch("PARALLEL_TEST_GROUPS", nil)
+ # As a result of the inherent difficulty of intelligently determining parallel testing,
442
+ # and for scenarios where the normal ENV variables may not get set,
443
+ # use an explicit trigger defined internally: SIMPLECOV_PARALLEL
444
+ ENV.fetch("SIMPLECOV_PARALLEL", nil) || (
445
+ ENV.fetch("TEST_ENV_NUMBER", nil) && ENV.fetch("PARALLEL_TEST_GROUPS", nil)
446
+ )
447
448
449
0 commit comments