Skip to content

Commit

Permalink
Fix code coverage
Browse files Browse the repository at this point in the history
Needed to add:

    SimpleCov.external_at_exit = true

to the test helper to get SimpleCov to work properly.

simplecov-ruby/simplecov#1112
  • Loading branch information
liveh2o committed Nov 30, 2024
1 parent b2c47a3 commit 831ccfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ gem "rack-test", "~> 2.1"

gem "rake", "~> 13.0"

gem "simplecov", "~> 0.22"
gem "simplecov", "~> 0.22", require: false

gem "standard", "~> 1.3"
1 change: 1 addition & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# Start SimpleCov
require "simplecov"
SimpleCov.external_at_exit = true
SimpleCov.start do
add_filter "/test"
end
Expand Down

0 comments on commit 831ccfc

Please sign in to comment.