2016-02-03 00:54:37 +08:00
|
|
|
[pytest]
|
2019-05-16 12:25:42 +08:00
|
|
|
|
2023-02-18 12:40:48 +08:00
|
|
|
# Display console output, disable cacheprovider, don't collect recordings:
|
|
|
|
addopts = --capture=no -p no:cacheprovider --ignore=recordings
|
|
|
|
|
|
|
|
# Skip looking in these directories for tests:
|
|
|
|
norecursedirs = .* build dist recordings temp
|
2019-05-16 12:25:42 +08:00
|
|
|
|
2021-01-08 02:44:28 +08:00
|
|
|
# Ignore warnings such as DeprecationWarning and 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.)
|
|
|
|
# (unittest.TestCase rules override the rules here for classes and functions.)
|
|
|
|
python_files = test_*.py *_test.py *_tests.py *_suite.py
|
|
|
|
python_classes = Test* *Test* *Test *Tests *Suite
|
|
|
|
python_functions = test_*
|
|
|
|
|
2021-01-14 02:33:20 +08:00
|
|
|
# Here are some common pytest markers:
|
|
|
|
# (Some are used in the example tests.)
|
2019-05-16 12:25:42 +08:00
|
|
|
# (pytest v4.5.0 and newer requires marker registration to prevent warnings.)
|
|
|
|
# (Future versions of pytest may turn those marker warnings into errors.)
|
|
|
|
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
|