Skip to content

Commit 84ed41c

Browse files
committed
use .coveragerc (exclude random stuff from coverage)
it seems like coverage/codecov/coveralls are all leveraging this file. see also #126 (thanks @gliptak)
1 parent bc02633 commit 84ed41c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.coveragerc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[report]
2+
include =
3+
setup.py
4+
tests/*
5+
xmlrunner/*

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ commands = coverage erase
2525

2626
[testenv:end]
2727
commands =
28-
coverage report --include='setup.py,xmlrunner/*,tests/*'
29-
coverage html --include='setup.py,xmlrunner/*,tests/*'
28+
coverage report
29+
coverage html
3030

3131
[testenv:quality]
3232
ignore_outcome = True

0 commit comments

Comments
 (0)