summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2018-05-07 12:05:43 -0700
committerGitHub <noreply@github.com>2018-05-07 12:05:43 -0700
commit3beeb23ca7b8d105b05559de3f9defd0f70168e0 (patch)
tree049eb81eef98ee0dc33c1ee8fa7797f7282682e8
parent7063a3183628b6c1b7525f58227172f4074992ba (diff)
parent9a584de0dc1c7c70eac39e4d5e5eccaeaf0e33c4 (diff)
downloadmarkupsafe-3beeb23ca7b8d105b05559de3f9defd0f70168e0.tar.gz
Merge pull request #95 from RonnyPfannschmidt/pytest-cov
[WIP] fix #94 by using pytest-cov instead of plain coverage
-rw-r--r--tox.ini17
1 files changed, 14 insertions, 3 deletions
diff --git a/tox.ini b/tox.ini
index 33d665a..628547a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -7,9 +7,8 @@ envlist =
[testenv]
passenv = LANG
deps =
- pytest>=3
- coverage
-commands = coverage run -p -m pytest {posargs}
+ pytest-cov
+commands = pytest --cov={envsitepackagesdir}/markupsafe --cov-config=tox.ini --cov-report='' --cov-append {posargs}
[testenv:docs-html]
deps =
@@ -35,3 +34,15 @@ commands =
coverage combine
coverage report
codecov
+
+[coverage:run]
+branch = True
+parallel = True
+source =
+ markupsafe
+
+[coverage:paths]
+source =
+ markupsafe
+ .tox/*/lib/python*/site-packages/markupsafe
+ .tox/pypy/site-packages/markupsafe