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

This commit is contained in:
Matt Jankowski authored and GitHub committed 2025-02-04 11:14:45 +00:00
1 parent 5212cd43ec
commit 95caa8bc4e
5 files changed
+5 -8

No files matched your search

+1 -1
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
+1 -1
View File
@@ -2,7 +2,7 @@
ENV['RAILS_ENV'] ||= 'test'
unless ENV['DISABLE_SIMPLECOV'] == 'true'
if ENV.fetch('COVERAGE', false)
require 'simplecov'
SimpleCov.start 'rails' do