Skip to content

Commit b6f7075

Browse files
Cristi1324Dany9966
authored andcommitted
Omit unit tests directory from all coverage runs
1 parent 75cfd53 commit b6f7075

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tox.ini

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,17 @@ setenv =
2121
commands =
2222
stestr run --no-subunit-trace {posargs}
2323
coverage combine
24-
coverage report --skip-covered --omit={toxinidir}/coriolisclient/tests/*
24+
coverage report --skip-covered
2525
coverage html -d cover
2626
coverage xml -o cover/coverage.xml
2727

2828
[testenv:venv]
2929
commands = {posargs}
3030

31+
[coverage:run]
32+
source = coriolisclient
33+
omit = coriolisclient/tests/*
34+
3135
[flake8]
3236
# E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126
3337
# E251 Skipped due to https://github.com/jcrocholl/pep8/issues/301

0 commit comments

Comments
 (0)