tox: Use pytest instead of unittest.

This commit is contained in:
Florian Bruhin 2015-03-30 22:09:56 +02:00
parent 2f629befc3
commit 36421934f9

View File

@ -16,19 +16,23 @@ usedevelop = true
[testenv:unittests]
setenv = QT_QPA_PLATFORM_PLUGIN_PATH={envsitepackagesdir}/PyQt5/plugins/platforms
deps =
py==1.4.26
pytest==2.7.0
# We don't use {[testenv:mkvenv]commands} here because that seems to be broken
# on Ubuntu Trusty.
commands =
{envpython} scripts/link_pyqt.py --tox {envdir}
{envpython} -m unittest
{envpython} -m py.test
[testenv:coverage]
deps =
{[testenv:unittests]deps}
coverage==3.7.1
commands =
{[testenv:mkvenv]commands}
{envpython} -m coverage erase
{envpython} -m coverage run --branch --source=qutebrowser -m unittest
{envpython} -m coverage run --branch --source=qutebrowser -m py.test
{envpython} -m coverage html
{envpython} scripts/print_coverage.py