Skip to content

Commit

Permalink
Update codecov config to include separate tests and lib sub-projects (#…
Browse files Browse the repository at this point in the history
…788)

* Update codecov config to include separate tests and lib sub-projects

* Yaml lint
  • Loading branch information
abhinavsingh authored Nov 24, 2021
1 parent 54baf62 commit 78d20d9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,21 @@ codecov:
coverage:
status:
project:
default:
default: false # disable the default status that measures entire project
# examples: # declare a new status context "examples"
tests: # declare a new status context "tests"
# target: 100% # we always want 100% coverage here
paths:
- "tests/" # only include coverage in "tests/" folder
lib: # declare a new status context "lib"
paths:
- "!tests/" # remove all files in "tests/"
threshold: 1%
patch:
default:
target: auto
base: auto
threshold: 1%
comment:
require_changes: true
...

0 comments on commit 78d20d9

Please sign in to comment.