0
0
Fork 0

Switch coverage generation default to false, allow opt in with COVERAGE env var (#33824)

This commit is contained in:
Matt Jankowski 2025-02-04 06:14:45 -05:00 committed by GitHub
parent 5212cd43ec
commit 95caa8bc4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5 additions and 8 deletions

View file

@ -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