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 11[tox]
2- envlist = py27,py37
2+ envlist = clean, py27,py37
33skipsdist = {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
2929whitelist_externals = true
3030deps = pytest
31+ pytest-cov
3132 xmlrunner
3233 unittest2
3334 unittest-xml-reporting
3435
3536distdir = build
36- # changedir = tests
37- # commands_pre = python setup.py dist build
3837commands =
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