2016-02-03 00:54:37 +08:00
|
|
|
[pytest]
|
2019-05-16 12:25:42 +08:00
|
|
|
|
2018-02-26 09:32:02 +08:00
|
|
|
# Let console output be seen. Don't override the pytest plugin.
|
2019-04-06 05:32:43 +08:00
|
|
|
addopts = --capture=no --ignore conftest.py -p no:cacheprovider
|
2019-05-16 12:25:42 +08:00
|
|
|
|
2019-05-15 12:44:40 +08:00
|
|
|
# Ignore warnings such as DeprecationWarning and pytest.PytestUnknownMarkWarning
|
|
|
|
filterwarnings = ignore::pytest.PytestWarning
|
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_*
|
|
|
|
|
2019-05-16 12:25:42 +08:00
|
|
|
# Here are the pytest markers used in the example tests:
|
|
|
|
# (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
|