2016-02-03 00:54:37 +08:00
|
|
|
[pytest]
|
2019-05-16 12:25:42 +08:00
|
|
|
|
2023-03-24 03:57:47 +08:00
|
|
|
# Display console output. Disable cacheprovider:
|
|
|
|
addopts = --capture=no -p no:cacheprovider
|
2023-02-18 12:40:48 +08:00
|
|
|
|
2023-03-24 03:57:47 +08:00
|
|
|
# Skip these directories during test collection:
|
|
|
|
norecursedirs = .* build dist recordings temp assets
|
2019-05-16 12:25:42 +08:00
|
|
|
|
2023-03-24 03:57:47 +08:00
|
|
|
# Ignore DeprecationWarning, PytestUnknownMarkWarning
|
2020-04-18 13:11:53 +08:00
|
|
|
filterwarnings =
|
|
|
|
ignore::pytest.PytestWarning
|
|
|
|
ignore:.*U.*mode is deprecated:DeprecationWarning
|
2019-05-16 12:25:42 +08:00
|
|
|
|
2019-11-29 13:50:44 +08:00
|
|
|
# Configure the junit_family option explicitly:
|
|
|
|
junit_family = legacy
|
|
|
|
|
2019-11-05 14:54:02 +08:00
|
|
|
# Set pytest discovery rules:
|
|
|
|
# (Most of the rules here are similar to the default rules.)
|
2023-03-24 03:57:47 +08:00
|
|
|
# (Inheriting unittest.TestCase could override these rules.)
|
2019-11-05 14:54:02 +08:00
|
|
|
python_files = test_*.py *_test.py *_tests.py *_suite.py
|
|
|
|
python_classes = Test* *Test* *Test *Tests *Suite
|
|
|
|
python_functions = test_*
|
|
|
|
|
2023-03-24 03:57:47 +08:00
|
|
|
# Common pytest markers used in examples:
|
|
|
|
# (pytest may require marker registration to prevent warnings.)
|
|
|
|
# (Future versions may turn those marker warnings into errors.)
|
2019-05-16 12:25:42 +08:00
|
|
|
markers =
|
|
|
|
marker1: custom marker
|
|
|
|
marker2: custom marker
|
|
|
|
marker3: custom marker
|
|
|
|
marker_test_suite: custom marker
|
|
|
|
expected_failure: custom marker
|
2020-04-21 14:29:22 +08:00
|
|
|
local: custom marker
|
|
|
|
remote: custom marker
|
|
|
|
offline: custom marker
|
|
|
|
develop: custom marker
|
|
|
|
qa: custom marker
|
2021-01-14 02:33:20 +08:00
|
|
|
ci: custom marker
|
|
|
|
e2e: custom marker
|
2020-04-21 14:29:22 +08:00
|
|
|
ready: custom marker
|
2021-01-14 02:33:20 +08:00
|
|
|
smoke: custom marker
|
|
|
|
deploy: custom marker
|
2020-08-08 13:07:10 +08:00
|
|
|
active: custom marker
|
2020-04-21 14:29:22 +08:00
|
|
|
master: custom marker
|
|
|
|
release: custom marker
|
|
|
|
staging: custom marker
|
|
|
|
production: custom marker
|