Updated RSpec coverage environment variable

The original `NO_COVERAGE` environment variable was awkward to read due to the double negative so `COVERAGE` is being used with an explicit "no" to disable. A message is printed to the console, when disabled, so there are no surprises.

Milestone: minor
This commit is contained in:
Brooke Kuhlmann
2025-09-09 13:05:14 -06:00
parent 3e141eb0bf
commit cbb7c2753e
+3 -1
View File
@@ -2,7 +2,9 @@
require "simplecov"
unless ENV["NO_COVERAGE"]
if ENV["COVERAGE"] == "no"
puts "SimpleCov skipped due to being disabled."
else
SimpleCov.start do
add_filter %r(^/spec/)
enable_coverage :branch