Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5f91ee6

Browse files
committed
Run tests on the installed package.
1 parent 6093485 commit 5f91ee6

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

tox.ini

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ envlist = py{26,27,34,py,py3}, docs, style
33

44

55
[testenv]
6+
changedir = {envtmpdir}
67
commands =
7-
py.test [] jsonschema
8-
{envpython} -m doctest README.rst
9-
py{26,27,34,py}: sphinx-build -b doctest docs {envtmpdir}/html
8+
py.test [] {toxinidir}/jsonschema
9+
{envpython} -m doctest {toxinidir}/README.rst
10+
py{26,27,34,py}: sphinx-build -b doctest {toxinidir}/docs {envtmpdir}/html
1011
deps =
1112
pytest
1213
strict-rfc3339
@@ -24,7 +25,7 @@ deps =
2425

2526
[testenv:coverage]
2627
commands =
27-
coverage run --branch --source jsonschema [] {envbindir}/py.test jsonschema
28+
coverage run --branch --source {toxinidir}/jsonschema [] {envbindir}/py.test {toxinidir}/jsonschema
2829
coverage report --show-missing
2930
coverage html
3031
deps =
@@ -43,7 +44,7 @@ commands =
4344
[testenv:style]
4445
deps = flake8
4546
commands =
46-
flake8 [] --max-complexity 10 jsonschema
47+
flake8 [] --max-complexity 10 {toxinidir}/jsonschema
4748

4849

4950
[flake8]

0 commit comments

Comments
 (0)