Skip to content

Commit

Permalink
Update codecov config (#3906)
Browse files Browse the repository at this point in the history
Codecov will report coverage for the patch and for the project based on the pull request. In case the overall coverage drops by more then 0.5% the pull request will fail. It is still possible to have pull requests without tests which will not fail because the overall coverage did not change too much.
  • Loading branch information
ruflin authored and tsg committed Apr 6, 2017
1 parent c52056c commit fcc02f8
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
# Enable coverage report message for diff on commit
# Docs can be found here: https://docs.codecov.io/v4.3.0/docs/commit-status
coverage:
status:
project: off
project:
default:
target: auto
# Overall coverage should never drop more then 0.5%
threshold: 0.5
base: auto
branches: null
if_no_uploads: error
if_not_found: success
if_ci_failed: error
only_pulls: false
flags: null
paths: null
patch:
default:
# basic
target: auto
threshold: 0.1
# Allows PRs without tests, overall stats count
threshold: 100
base: auto
# advanced
branches: null
if_no_uploads: error
if_not_found: success
Expand Down

0 comments on commit fcc02f8

Please sign in to comment.