Switch coverage generation default to false, allow opt in with COVERAGE
env var (#33824)
This commit is contained in:
parent
5212cd43ec
commit
95caa8bc4e
5 changed files with 5 additions and 8 deletions
|
@ -3,7 +3,7 @@
|
|||
if defined?(Flatware)
|
||||
Flatware.configure do |config|
|
||||
config.after_fork do |test_env_number|
|
||||
unless ENV.fetch('DISABLE_SIMPLECOV', nil) == 'true'
|
||||
if ENV.fetch('COVERAGE', false)
|
||||
require 'simplecov'
|
||||
SimpleCov.at_fork.call(test_env_number) # Combines parallel coverage results
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue