From 78d20d98f60d838b859e9fad1bf5391189831399 Mon Sep 17 00:00:00 2001 From: Abhinav Singh <126065+abhinavsingh@users.noreply.github.com> Date: Wed, 24 Nov 2021 22:12:40 +0530 Subject: [PATCH] Update codecov config to include separate tests and lib sub-projects (#788) * Update codecov config to include separate tests and lib sub-projects * Yaml lint --- codecov.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/codecov.yml b/codecov.yml index 5a8572e1..d120bd49 100644 --- a/codecov.yml +++ b/codecov.yml @@ -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 ...