Skip to content

Commit

Permalink
Check ruby test coverage before merging PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
unoduetre committed Jun 28, 2024
1 parent af01016 commit cba703b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
if ENV["USE_SIMPLECOV"]
require "simplecov"
require "simplecov-rcov"
SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
SimpleCov.start
require "simplecov"
require "simplecov-rcov"
SimpleCov.start do
formatter SimpleCov::Formatter::RcovFormatter
enable_coverage :branch
minimum_coverage 95
end

if ENV["USE_I18N_COVERAGE"]
Expand Down

0 comments on commit cba703b

Please sign in to comment.