Skip to content

Commit

Permalink
Run specs with coverage when COVERAGE is truthy
Browse files Browse the repository at this point in the history
We default to not running with coverage to speed up the suite. To run with coverage locally, use:

```
COVERAGE=true bundle exec rake spec
```
  • Loading branch information
darronschall committed May 24, 2024
1 parent f479441 commit 757022b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# frozen_string_literal: true

if %w[t true yes y 1].include?(ENV["COVERAGE"])
require "simplecov"
SimpleCov.start do
enable_coverage :branch
end
end

require "rspec/file_fixtures"
require "twirp/protoc_plugin"
require "support/matchers/be_empty_scaffolding_matcher"
Expand Down

0 comments on commit 757022b

Please sign in to comment.