diff options
author | Bernat Gabor <jokerjokerer@gmail.com> | 2017-12-06 21:21:53 +0000 |
---|---|---|
committer | Bernat Gabor <jokerjokerer@gmail.com> | 2017-12-06 21:33:33 +0000 |
commit | 43331915929e2287ffc76d6b100a4cc8f7f4dc66 (patch) | |
tree | f014711c869e8afa5f849cde28dfd9dfdda07135 | |
parent | 284dff7dbfb02829b034eab0169d0280ae9bce72 (diff) | |
download | dateutil-43331915929e2287ffc76d6b100a4cc8f7f4dc66.tar.gz |
xfails do not count towards code coverage, but still fail the test suite if they start passing
-rw-r--r-- | tox.ini | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -14,7 +14,8 @@ skip_missing_interpreters = true description = run the unit tests with pytest under {basepython} setenv = COVERAGE_FILE={toxworkdir}/.coverage.{envname} passenv = DATEUTIL_MAY_CHANGE_TZ TOXENV CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_* CODECOV_* -commands = python -m pytest {posargs: --cov-config="{toxinidir}/tox.ini" --cov=dateutil "{toxinidir}/dateutil/test"} +commands = python -m pytest -m "not xfail" {posargs: "{toxinidir}/dateutil/test" --cov-config="{toxinidir}/tox.ini" --cov=dateutil} + python -m pytest -m "xfail" {posargs: "{toxinidir}/dateutil/test"} deps = -rrequirements-dev.txt [testenv:coverage] @@ -25,7 +26,7 @@ changedir = {toxworkdir} setenv = COVERAGE_FILE=.coverage commands = coverage erase coverage combine - coverage report + coverage report --rcfile={toxinidir}/tox.ini coverage xml [testenv:codecov] @@ -43,3 +44,7 @@ commands = python -m pip list --format=columns [coverage:run] source = dateutil omit = dateutil/test* + +[coverage:report] +skip_covered=True +show_missing=True |