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
|
@ -2,7 +2,7 @@
|
|||
|
||||
ENV['RAILS_ENV'] ||= 'test'
|
||||
|
||||
unless ENV['DISABLE_SIMPLECOV'] == 'true'
|
||||
if ENV.fetch('COVERAGE', false)
|
||||
require 'simplecov'
|
||||
|
||||
SimpleCov.start 'rails' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue