aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2015-03-29 09:04:02 -0400
committerTim Harder <radhermit@gmail.com>2015-03-29 09:04:02 -0400
commit8868a05cd1f60508c55b67ead258321d6806cd1f (patch)
treeb96694df0d6d86deefaafe3bb78aa45d93949c28 /tox.ini
parentuse generic glob for ignoring C extension shared objects (diff)
downloadpkgcore-8868a05cd1f60508c55b67ead258321d6806cd1f.tar.gz
pkgcore-8868a05cd1f60508c55b67ead258321d6806cd1f.tar.bz2
pkgcore-8868a05cd1f60508c55b67ead258321d6806cd1f.zip
allow individual tests to be run via tox
Usage: tox -- path/to/test or any other arguments to pass to pytest.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini2
1 files changed, 1 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 1821d808..b899485d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -15,7 +15,7 @@ commands =
pip install git+https://github.com/pkgcore/snakeoil.git --install-option="--install-headers={envdir}/include/snakeoil"; \
python setup.py build_ext -I {envdir}/include build -b {envdir}/build --disable-man-pages --disable-html-docs install --disable-man-pages --disable-html-docs; \
pushd {envsitepackagesdir}; \
- coverage run --source pkgcore --omit "pkgcore/test/*" -m py.test pkgcore/test; \
+ coverage run --source pkgcore --omit "pkgcore/test/*" -m py.test {posargs:pkgcore/test}; \
coverage report -m; \
coverage html -d {envdir}/coverage; \
popd'