Skip to content

Commit cefda55

Browse files
committed
ENH: Add separate coverage for tests.
Separate out coverage for lines in tests (which should be 100%) versus those in the library itself.
1 parent 770b488 commit cefda55

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.coveragerc

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22
source=
33
matplotlib
44
mpl_toolkits
5-
[report]
6-
omit =
7-
lib/matplotlib/tests/*
8-
lib/matplotlib/testing/*
9-
lib/mpl_toolkits/tests/*
105

6+
[report]
117
exclude_lines =
128
raise NotImplemented
139
def __str__

codecov.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,19 @@ coverage:
1111
if_not_found: success
1212
if_ci_failed: failure
1313
project:
14-
default:
14+
default: false
15+
library:
1516
target: auto
1617
if_no_uploads: error
1718
if_not_found: success
1819
if_ci_failed: failure
20+
paths:
21+
- "lib/matplotlib/(?!tests)(\w+/)+\.py$"
22+
- "lib/matplotlib/sphinxext/(?!tests)(\w+/)+\.py$"
23+
- "lib/mpl_toolkits/(?!tests)(\w+/)+\.py$"
24+
25+
tests:
26+
target: 100%
27+
paths: "lib/.*/tests/.*"
1928

2029
comment: off

0 commit comments

Comments
 (0)