Skip to content

Commit

Permalink
set a 1% theshold for coverage changes
Browse files Browse the repository at this point in the history
Our tests are somewhat inconsistent in their coverage, so coverage can
go down slightly even with unrelated changes. We also have untested
code, and small tweaks will often be shown as a reduction in coverage.

Setting a 1% threshold will reduce friction on both of these cases. Any
larger changes will still require an increase in coverage, so we should
still trend upward over time.
  • Loading branch information
haarg committed May 15, 2024
1 parent 4f143b5 commit d1aae90
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@ comment:
require_base: false # [true :: must have a base report to post]
require_head: true # [true :: must have a head report to post]
hide_project_coverage: false # [true :: only show coverage on the git diff]
coverage:
status:
patch:
default:
threshold: 1%
project:
default:
threshold: 1%

0 comments on commit d1aae90

Please sign in to comment.