mirror of
https://github.com/usetrmnl/trmnl-api.git
synced 2026-04-29 13:35:13 -07:00
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:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user