Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ecb0bd6

Browse files
committed
Split coverage into distinct library and tests stats
Some projects exclude tests coverage completely because counting it with other code artificially increases total code coverage, but tests coverage monitoring is a good thing because it catches mistakenly not running tests. The split should eliminate situations with 'coverage decreases' status reports when tests code shrinks while the library code and its coverage remains the same.
1 parent 8574f14 commit ecb0bd6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

codecov.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ coverage:
22
status:
33
patch: off
44
project:
5-
default:
5+
default: false
6+
library:
67
target: auto
8+
paths: '!.*/tests/.*'
9+
tests:
10+
target: auto
11+
paths: '.*/tests/.*'
712
codecov:
813
require_ci_to_pass: false

0 commit comments

Comments
 (0)