tox: Use pytest instead of unittest.
This commit is contained in:
parent
2f629befc3
commit
36421934f9
8
tox.ini
8
tox.ini
@ -16,19 +16,23 @@ usedevelop = true
|
|||||||
|
|
||||||
[testenv:unittests]
|
[testenv:unittests]
|
||||||
setenv = QT_QPA_PLATFORM_PLUGIN_PATH={envsitepackagesdir}/PyQt5/plugins/platforms
|
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
|
# We don't use {[testenv:mkvenv]commands} here because that seems to be broken
|
||||||
# on Ubuntu Trusty.
|
# on Ubuntu Trusty.
|
||||||
commands =
|
commands =
|
||||||
{envpython} scripts/link_pyqt.py --tox {envdir}
|
{envpython} scripts/link_pyqt.py --tox {envdir}
|
||||||
{envpython} -m unittest
|
{envpython} -m py.test
|
||||||
|
|
||||||
[testenv:coverage]
|
[testenv:coverage]
|
||||||
deps =
|
deps =
|
||||||
|
{[testenv:unittests]deps}
|
||||||
coverage==3.7.1
|
coverage==3.7.1
|
||||||
commands =
|
commands =
|
||||||
{[testenv:mkvenv]commands}
|
{[testenv:mkvenv]commands}
|
||||||
{envpython} -m coverage erase
|
{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} -m coverage html
|
||||||
{envpython} scripts/print_coverage.py
|
{envpython} scripts/print_coverage.py
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user