69 lines
3.4 KiB
INI
69 lines
3.4 KiB
INI
[pytest]
|
|
log_level = NOTSET
|
|
addopts = --strict-markers --strict-config --instafail --benchmark-columns=Min,Max,Median
|
|
testpaths = tests
|
|
required_plugins =
|
|
pytest-bdd
|
|
pytest-benchmark
|
|
pytest-instafail
|
|
pytest-mock
|
|
pytest-qt
|
|
pytest-rerunfailures
|
|
markers =
|
|
gui: Tests using the GUI (e.g. spawning widgets)
|
|
posix: Tests which only can run on a POSIX OS.
|
|
windows: Tests which only can run on Windows.
|
|
linux: Tests which only can run on Linux.
|
|
mac: Tests which only can run on macOS.
|
|
not_mac: Tests which can not run on macOS.
|
|
not_frozen: Tests which can't be run if sys.frozen is True.
|
|
not_flatpak: Tests which can't be run if running with Flatpak.
|
|
no_xvfb: Tests which can't be run with Xvfb.
|
|
frozen: Tests which can only be run if sys.frozen is True.
|
|
integration: Tests which test a bigger portion of code
|
|
end2end: End to end tests which run qutebrowser as subprocess
|
|
xfail_norun: xfail the test with out running it
|
|
ci: Tests which should only run on CI.
|
|
no_ci: Tests which should not run on CI.
|
|
qtwebengine_todo: Features still missing with QtWebEngine
|
|
qtwebengine_skip: Tests not applicable with QtWebEngine
|
|
qtwebkit_skip: Tests not applicable with QtWebKit
|
|
qtwebengine_flaky: Tests which are flaky (and currently skipped) with QtWebEngine
|
|
qtwebengine_mac_xfail: Tests which fail on macOS with QtWebEngine
|
|
this: Used to mark tests during development
|
|
no_invalid_lines: Don't fail on unparsable lines in end2end tests
|
|
fake_os: Fake utils.is_* to a fake operating system
|
|
unicode_locale: Tests which need a unicode locale to work
|
|
qtwebkit_pdf_imageformat_skip: Broken on QtWebKit with PDF image format plugin installed
|
|
qtwebkit_openssl3_skip: Broken due to cheroot bug with OpenSSL 3 on QtWebKit
|
|
windows_skip: Tests which should be skipped on Windows
|
|
qt5_only: Tests which should only run with Qt 5
|
|
qt6_only: Tests which should only run with Qt 6
|
|
qt5_xfail: Tests which fail with Qt 5
|
|
qt6_xfail: Tests which fail with Qt 6
|
|
qt_log_level_fail = WARNING
|
|
qt_log_ignore =
|
|
# GitHub Actions
|
|
^QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to .*
|
|
# test_on_focus_changed_issue1484 on macOS
|
|
^The available OpenGL surface format was either not version 3\.2 or higher or not a Core Profile.*
|
|
# tests/unit/mainwindow/test_messageview.py and
|
|
# tests/unit/mainwindow/statusbar/test_textbase.py::test_resize
|
|
# on Windows
|
|
^QWindowsWindow::setGeometry(Dp)?: Unable to set geometry .*
|
|
# tests/unit/commands/test_userscripts.py::test_killed_command
|
|
# on Windows
|
|
^QProcess: Destroyed while process .* is still running\.
|
|
xfail_strict = true
|
|
filterwarnings =
|
|
error
|
|
default:Test process .* failed to terminate!:UserWarning
|
|
# https://github.com/certifi/python-certifi/issues/170
|
|
ignore:path is deprecated\. Use files\(\) instead\. Refer to https.//importlib-resources\.readthedocs\.io/en/latest/using\.html#migrating-from-legacy for migration advice\.:DeprecationWarning:certifi.core
|
|
# https://github.com/HypothesisWorks/hypothesis/issues/3309
|
|
ignore:module 'sre_constants' is deprecated:DeprecationWarning
|
|
ignore:module 'sre_parse' is deprecated:DeprecationWarning
|
|
# https://github.com/pytest-dev/pytest-instafail/pull/26
|
|
ignore:The hookimpl pytest_.* uses old-style configuration options:pytest.PytestDeprecationWarning:pytest_instafail
|
|
faulthandler_timeout = 90
|