Skip to content

Commit 56d6f5f

Browse files
committed
Exclude all test files from code coverage analysis
Previously test directories were only excluded from coverage analysis if they were just under `astroquery` or separated from it by one directory, but now all directories named `tests` are excluded no matter how deep in the directory hierarchy they are.
1 parent 2facaed commit 56d6f5f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

setup.cfg

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,11 @@ exclude = _astropy_init.py,version.py,astroquery/template_module
9999
[coverage:run]
100100
omit =
101101
astroquery/*_init*
102-
astroquery/tests/*
103-
astroquery/*/tests/*
102+
astroquery/**/tests/*
104103
astroquery/*setup*
105104
astroquery/version*
106105
*/astroquery/*_init*
107-
*/astroquery/tests/*
108-
*/astroquery/*/tests/*
106+
*/astroquery/**/tests/*
109107
*/astroquery/*setup*
110108
*/astroquery/version*
111109

0 commit comments

Comments
 (0)