1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
[tox]
minversion = 3.1
envlist = py3,coverage,pep8
[testenv]
deps =
-r test-requirements.txt
commands =
pytest wsme/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py
[testenv:coverage]
commands =
coverage erase
pytest --cov=wsme --cov=wsme_ext wsme/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py
coverage combine
coverage xml --include="wsme/*.py","wsme/rest/*.py","wsmeext/*.py" --omit "wsme/tests/*"
coverage report --show-missing --include="wsme/*.py","wsme/rest/*.py","wsmeext/*.py" --omit "wsme/tests/*"
[testenv:docs]
allowlist_externals =
rm
deps =
-r doc/requirements.txt
commands =
rm -fr doc/build
sphinx-build -W -b html doc/source doc/build/html
[testenv:pep8]
deps = flake8
commands =
flake8 wsme wsmeext setup.py
[testenv:venv]
usedevelop = True
commands = {posargs}
|