Disable code coverage by default

We can activate it on demand:

  COVERAGE=1 bundle exec rspec

We often run specs in chunks but simplecov needs all tests to be run.
This commit is contained in:
Maikel Linke
2021-03-12 11:03:12 +11:00
parent 2c0e9d77b8
commit 3ee54b1bfa
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
# frozen_string_literal: true
unless !!ENV['CI']
if ENV["COVERAGE"]
require 'simplecov'
SimpleCov.minimum_coverage 54

View File

@@ -1,6 +1,6 @@
# frozen_string_literal: true
unless ENV['CI']
if ENV["COVERAGE"]
require 'simplecov'
SimpleCov.start 'rails'
end