parent
95fe54f010
commit
e9662b71f0
@ -1,5 +1,6 @@
|
||||
[pytest]
|
||||
norecursedirs = .tox .venv
|
||||
addopts = --strict -rfEsw --faulthandler-timeout=70 --instafail
|
||||
markers =
|
||||
gui: Tests using the GUI (e.g. spawning widgets)
|
||||
posix: Tests which only can run on a POSIX OS.
|
||||
|
@ -26,6 +26,9 @@ import pytest
|
||||
import pytestqt.plugin
|
||||
import pytest_mock
|
||||
import pytest_catchlog
|
||||
import pytest_instafail
|
||||
import pytest_faulthandler
|
||||
|
||||
sys.exit(pytest.main(plugins=[pytestqt.plugin, pytest_mock,
|
||||
pytest_catchlog]))
|
||||
pytest_catchlog, pytest_instafail,
|
||||
pytest_faulthandler]))
|
||||
|
10
tox.ini
10
tox.ini
@ -46,7 +46,7 @@ deps =
|
||||
cherrypy==4.0.0
|
||||
commands =
|
||||
{envpython} scripts/link_pyqt.py --tox {envdir}
|
||||
{envpython} -m py.test --strict -rfEsw --faulthandler-timeout=70 --instafail {posargs:tests}
|
||||
{envpython} -m py.test {posargs:tests}
|
||||
|
||||
[testenv:py35-cov]
|
||||
basepython = python3.5
|
||||
@ -55,7 +55,7 @@ passenv = {[testenv]passenv}
|
||||
deps = {[testenv]deps}
|
||||
commands =
|
||||
{envpython} scripts/link_pyqt.py --tox {envdir}
|
||||
{envpython} -m py.test --strict -rfEsw --faulthandler-timeout=70 --instafail --cov --cov-report xml --cov-report=html --cov-report= {posargs:tests}
|
||||
{envpython} -m py.test --cov --cov-report xml --cov-report=html --cov-report= {posargs:tests}
|
||||
{envpython} scripts/dev/check_coverage.py {posargs}
|
||||
|
||||
[testenv:py34-cov]
|
||||
@ -65,7 +65,7 @@ passenv = {[testenv]passenv}
|
||||
deps = {[testenv]deps}
|
||||
commands =
|
||||
{envpython} scripts/link_pyqt.py --tox {envdir}
|
||||
{envpython} -m py.test --strict -rfEsw --faulthandler-timeout=70 --instafail --cov --cov-report xml --cov-report=html --cov-report= {posargs:tests}
|
||||
{envpython} -m py.test --cov --cov-report xml --cov-report=html --cov-report= {posargs:tests}
|
||||
{envpython} scripts/dev/check_coverage.py {posargs}
|
||||
|
||||
[testenv:mkvenv]
|
||||
@ -87,7 +87,7 @@ deps =
|
||||
commands =
|
||||
{envpython} scripts/link_pyqt.py --tox {envdir}
|
||||
{envpython} scripts/dev/freeze_tests.py build_exe -b {envdir}/build
|
||||
{envdir}/build/run-frozen-tests --strict -rfEsw {posargs}
|
||||
{envdir}/build/run-frozen-tests {posargs}
|
||||
|
||||
[testenv:unittests-nodisp]
|
||||
basepython = python3
|
||||
@ -98,7 +98,7 @@ setenv =
|
||||
QUTE_NO_DISPLAY=1
|
||||
commands =
|
||||
{envpython} scripts/link_pyqt.py --tox {envdir}
|
||||
{envpython} -m py.test --strict -rfEw {posargs:tests}
|
||||
{envpython} -m py.test {posargs:tests}
|
||||
|
||||
[testenv:misc]
|
||||
ignore_errors = true
|
||||
|
Loading…
Reference in New Issue
Block a user