File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change
1
+ [run]
2
+ omit =
3
+ .tox/*
4
+ tests/*
Original file line number Diff line number Diff line change 1
1
[tox]
2
- envlist = py27,py37
2
+ envlist = clean, py27,py37
3
3
skipsdist = {env:TOXBUILD:false}
4
4
5
5
[testenv:pep8]
@@ -28,12 +28,16 @@ setenv = SPLUNK_HOME=/opt/splunk
28
28
INPUT_EXAMPLE_UPLOAD =/opt/splunk/var/log/splunk/splunkd_ui_access.log
29
29
whitelist_externals = true
30
30
deps = pytest
31
+ pytest-cov
31
32
xmlrunner
32
33
unittest2
33
34
unittest-xml-reporting
34
35
35
36
distdir = build
36
- # changedir = tests
37
- # commands_pre = python setup.py dist build
38
37
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 --cov-config =.coveragerc} {posargs}
39
+
40
+ [testenv:clean]
41
+ deps = coverage
42
+ skip_install = true
43
+ commands = coverage erase
You can’t perform that action at this time.
0 commit comments