Really run on the installed package.

This commit is contained in:
Julian Berman
2015-03-15 12:24:33 -04:00
parent e5664b639f
commit 159dd1f0ea

View File

@@ -4,8 +4,10 @@ envlist = py{26,27,34,py,py3}, docs, style
[testenv] [testenv]
changedir = {envtmpdir} changedir = {envtmpdir}
setenv =
JSON_SCHEMA_TEST_SUITE = {toxinidir}/json
commands = commands =
green [] {toxinidir}/jsonschema green [] jsonschema
{envpython} -m doctest {toxinidir}/README.rst {envpython} -m doctest {toxinidir}/README.rst
py{26,27,34}: sphinx-build -b doctest {toxinidir}/docs {envtmpdir}/html py{26,27,34}: sphinx-build -b doctest {toxinidir}/docs {envtmpdir}/html
deps = deps =
@@ -23,7 +25,7 @@ deps =
[testenv:coverage] [testenv:coverage]
commands = commands =
coverage run --branch --source {toxinidir}/jsonschema [] {envbindir}/green {toxinidir}/jsonschema coverage run --branch --source {toxinidir}/jsonschema [] {envbindir}/green jsonschema
coverage report --show-missing coverage report --show-missing
coverage html coverage html
deps = deps =