2021-11-17 04:09:36 -05:00
|
|
|
[pytest]
|
|
|
|
# only the files with prefix `pytest_` would be recognized as pytest test scripts.
|
|
|
|
python_files = pytest_*.py
|
|
|
|
|
2021-11-30 22:32:50 -05:00
|
|
|
# ignore PytestExperimentalApiWarning for record_xml_attribute
|
2022-03-07 23:45:34 -05:00
|
|
|
# set traceback to "short" to prevent the overwhelming tracebacks
|
2021-11-30 22:36:29 -05:00
|
|
|
addopts =
|
2022-01-20 04:39:30 -05:00
|
|
|
-s
|
2021-11-30 22:36:29 -05:00
|
|
|
--embedded-services esp,idf
|
|
|
|
-W ignore::_pytest.warning_types.PytestExperimentalApiWarning
|
2022-03-07 23:45:34 -05:00
|
|
|
--tb short
|
2021-11-17 04:09:36 -05:00
|
|
|
|
2022-03-22 09:08:20 -04:00
|
|
|
# ignore DeprecationWarning
|
|
|
|
filterwarnings =
|
|
|
|
ignore:Call to deprecated create function (.*)\(\):DeprecationWarning
|
|
|
|
|
2021-11-17 04:09:36 -05:00
|
|
|
markers =
|
|
|
|
esp32: support esp32 target
|
2021-11-30 22:36:29 -05:00
|
|
|
esp32s2: support esp32s2 target
|
2021-11-30 22:32:50 -05:00
|
|
|
esp32s3: support esp32s3 target
|
2021-11-17 04:09:36 -05:00
|
|
|
esp32c3: support esp32c3 target
|
2021-12-03 02:39:18 -05:00
|
|
|
supported_targets: support all supported targets ('esp32', 'esp32s2', 'esp32c3', 'esp32s3')
|
2022-01-18 23:12:15 -05:00
|
|
|
preview_targets: support all preview targets ('linux', 'esp32h2', 'esp32c2')
|
2021-12-03 02:39:18 -05:00
|
|
|
all_targets: support all targets, including supported ones and preview ones
|
2021-11-17 04:09:36 -05:00
|
|
|
|
2022-01-18 23:12:15 -05:00
|
|
|
# env markers
|
|
|
|
generic: tests should be run on generic runners
|
|
|
|
flash_suspend: support flash suspend feature
|
|
|
|
ip101: connected via wired 10/100M ethernet
|
|
|
|
lan8720: connected via LAN8720 ethernet transceiver
|
2021-09-23 00:06:13 -04:00
|
|
|
octal_psram: runners with octal psram
|
2022-02-10 05:16:53 -05:00
|
|
|
usb_host: usb host runners
|
2022-01-18 23:12:15 -05:00
|
|
|
|
2021-11-17 04:09:36 -05:00
|
|
|
# log related
|
|
|
|
log_cli = True
|
|
|
|
log_cli_level = INFO
|
|
|
|
log_cli_format = %(asctime)s %(levelname)s %(message)s
|
|
|
|
log_cli_date_format = %Y-%m-%d %H:%M:%S
|
2021-11-30 22:36:29 -05:00
|
|
|
|
|
|
|
# junit related
|
|
|
|
junit_family = xunit1
|
2022-01-20 04:39:30 -05:00
|
|
|
|
2021-11-30 22:36:29 -05:00
|
|
|
## log all to `system-out` when case fail
|
2022-01-20 04:39:30 -05:00
|
|
|
junit_logging = stdout
|
2021-11-30 22:36:29 -05:00
|
|
|
junit_log_passing_tests = False
|