Skip to content

Commit

Permalink
Tox code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
amysutedja committed May 14, 2020
1 parent 91a638a commit 3ba350d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py27,py37
envlist = clean,py27,py37
skipsdist = {env:TOXBUILD:false}

[testenv:pep8]
Expand Down Expand Up @@ -28,12 +28,16 @@ setenv = SPLUNK_HOME=/opt/splunk
INPUT_EXAMPLE_UPLOAD=/opt/splunk/var/log/splunk/splunkd_ui_access.log
whitelist_externals = true
deps = pytest
pytest-cov
xmlrunner
unittest2
unittest-xml-reporting

distdir = build
#changedir = tests
#commands_pre = python setup.py dist build
commands =
{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}

[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase

0 comments on commit 3ba350d

Please sign in to comment.