aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tox.ini9
1 files changed, 7 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 86f9de6..d10573f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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