aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2015-07-13 22:51:40 -0400
committerTim Harder <radhermit@gmail.com>2015-07-13 22:51:40 -0400
commitc54bd58231b8ce5d6c1cf8b1085bd25b086b1a2f (patch)
treefdd67b447af0f5f8c3856994c1f92821f4bd5fb8 /tox.ini
parenttox: try to speed up tests by parallelizing them with pytest-xdist (diff)
downloadpkgcore-c54bd58231b8ce5d6c1cf8b1085bd25b086b1a2f.tar.gz
pkgcore-c54bd58231b8ce5d6c1cf8b1085bd25b086b1a2f.tar.bz2
pkgcore-c54bd58231b8ce5d6c1cf8b1085bd25b086b1a2f.zip
tox: use pytest-cov instead of coverage for test coverage
Mostly because coverage doesn't appear to work with pytest-xdist's multiprocess method of parallelizing tests.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini4
1 files changed, 2 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index e0312ddd..0c68774b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -11,13 +11,13 @@ setenv =
deps =
pytest
pytest-xdist
+ pytest-cov
mock
- coverage>=4.0a1
https://github.com/pkgcore/snakeoil/archive/master.tar.gz
commands =
pip install -I "{toxinidir}"
cp "{toxinidir}/.coveragerc" "{envsitepackagesdir}"
- coverage run -m py.test {posargs:-n 4 pkgcore/test}
+ py.test {posargs:-n 4 --cov pkgcore pkgcore/test}
[testenv:doc]
whitelist_externals = make