Skip to content

Commit 3ba350d

Browse files
committed
Tox code coverage
1 parent 91a638a commit 3ba350d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tox.ini

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py27,py37
2+
envlist = clean,py27,py37
33
skipsdist = {env:TOXBUILD:false}
44

55
[testenv:pep8]
@@ -28,12 +28,16 @@ setenv = SPLUNK_HOME=/opt/splunk
2828
INPUT_EXAMPLE_UPLOAD=/opt/splunk/var/log/splunk/splunkd_ui_access.log
2929
whitelist_externals = true
3030
deps = pytest
31+
pytest-cov
3132
xmlrunner
3233
unittest2
3334
unittest-xml-reporting
3435

3536
distdir = build
36-
#changedir = tests
37-
#commands_pre = python setup.py dist build
3837
commands =
39-
{env:TOXBUILD:python -m pytest --junitxml=test-reports/junit-{envname}.xml} {posargs}
38+
{env:TOXBUILD:python -m pytest --junitxml=test-reports/junit-{envname}.xml --cov} {posargs}
39+
40+
[testenv:clean]
41+
deps = coverage
42+
skip_install = true
43+
commands = coverage erase

0 commit comments

Comments
 (0)