We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91a638a commit 3ba350dCopy full SHA for 3ba350d
1 file changed
tox.ini
@@ -1,5 +1,5 @@
1
[tox]
2
-envlist = py27,py37
+envlist = clean,py27,py37
3
skipsdist = {env:TOXBUILD:false}
4
5
[testenv:pep8]
@@ -28,12 +28,16 @@ setenv = SPLUNK_HOME=/opt/splunk
28
INPUT_EXAMPLE_UPLOAD=/opt/splunk/var/log/splunk/splunkd_ui_access.log
29
whitelist_externals = true
30
deps = pytest
31
+ pytest-cov
32
xmlrunner
33
unittest2
34
unittest-xml-reporting
35
36
distdir = build
-#changedir = tests
37
-#commands_pre = python setup.py dist build
38
commands =
39
- {env:TOXBUILD:python -m pytest --junitxml=test-reports/junit-{envname}.xml} {posargs}
+ {env:TOXBUILD:python -m pytest --junitxml=test-reports/junit-{envname}.xml --cov} {posargs}
+
40
+[testenv:clean]
41
+deps = coverage
42
+skip_install = true
43
+commands = coverage erase
0 commit comments