Skip to content

Commit

Permalink
Clear coverage results post run
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahramadan committed Aug 15, 2024
1 parent 4c5c8db commit d41ea24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -358,3 +358,5 @@ jobs:
resultPath: lib/coverage_results/.last_run.json
failedThreshold: 93.5
failedThresholdBranch: 50
- name: Clear all Coverage Results
run: bundle exec rake coverage:clear
2 changes: 1 addition & 1 deletion lib/tasks/coverage_report.rake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if ENV['CI']

SimpleCov.coverage_dir('coverage_results')

SimpleCov.collate(Dir['*/coverage_*/.resultset.json']) do
SimpleCov.collate(Dir['*/coverage_*/.resultset-*.json']) do
formatter SimpleCov::Formatter::HTMLFormatter
refuse_coverage_drop
end
Expand Down

0 comments on commit d41ea24

Please sign in to comment.