Skip to content

Commit a4c053d

Browse files
committed
Add a code coverage testenv to the tox config
1 parent fe665f3 commit a4c053d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tox.ini

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ deps =
66
pytest
77
pytest-mock
88
responses
9-
commands = pytest {posargs:tests} -v
9+
commands = pytest -v {posargs:tests}
10+
11+
[testenv:cov]
12+
deps =
13+
{[testenv]deps}
14+
pytest-cov
15+
commands = pytest -v --cov labels {posargs:tests}
1016

1117
[testenv:flake8]
1218
deps = flake8

0 commit comments

Comments
 (0)