summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2015-03-15 11:41:34 -0400
committerJulian Berman <Julian@GrayVines.com>2015-03-15 11:41:34 -0400
commit5f91ee687601d97db46bc60ad359e7b30f950556 (patch)
treedaefc3b61ba71cc6f467870cf75fee6649d1f378
parent6093485f50afcc558b4333db00e9e18fbdc78818 (diff)
downloadjsonschema-5f91ee687601d97db46bc60ad359e7b30f950556.tar.gz
Run tests on the installed package.
-rw-r--r--tox.ini11
1 files changed, 6 insertions, 5 deletions
diff --git a/tox.ini b/tox.ini
index f330efc..d267bd3 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,10 +3,11 @@ envlist = py{26,27,34,py,py3}, docs, style
[testenv]
+changedir = {envtmpdir}
commands =
- py.test [] jsonschema
- {envpython} -m doctest README.rst
- py{26,27,34,py}: sphinx-build -b doctest docs {envtmpdir}/html
+ py.test [] {toxinidir}/jsonschema
+ {envpython} -m doctest {toxinidir}/README.rst
+ py{26,27,34,py}: sphinx-build -b doctest {toxinidir}/docs {envtmpdir}/html
deps =
pytest
strict-rfc3339
@@ -24,7 +25,7 @@ deps =
[testenv:coverage]
commands =
- coverage run --branch --source jsonschema [] {envbindir}/py.test jsonschema
+ coverage run --branch --source {toxinidir}/jsonschema [] {envbindir}/py.test {toxinidir}/jsonschema
coverage report --show-missing
coverage html
deps =
@@ -43,7 +44,7 @@ commands =
[testenv:style]
deps = flake8
commands =
- flake8 [] --max-complexity 10 jsonschema
+ flake8 [] --max-complexity 10 {toxinidir}/jsonschema
[flake8]