2021-11-17 17:09:36 +08:00
|
|
|
[pytest]
|
|
|
|
# only the files with prefix `pytest_` would be recognized as pytest test scripts.
|
|
|
|
python_files = pytest_*.py
|
|
|
|
|
2021-12-01 11:32:50 +08:00
|
|
|
# ignore PytestExperimentalApiWarning for record_xml_attribute
|
2022-03-08 12:45:34 +08:00
|
|
|
# set traceback to "short" to prevent the overwhelming tracebacks
|
2021-12-01 11:36:29 +08:00
|
|
|
addopts =
|
2022-01-20 17:39:30 +08:00
|
|
|
-s
|
2021-12-01 11:36:29 +08:00
|
|
|
--embedded-services esp,idf
|
2022-03-08 12:45:34 +08:00
|
|
|
--tb short
|
2022-10-25 22:09:38 +08:00
|
|
|
--strict-markers
|
2022-05-25 11:28:29 +08:00
|
|
|
--skip-check-coredump y
|
2022-10-28 13:21:27 +08:00
|
|
|
--logfile-extension ".txt"
|
2022-12-05 14:48:12 +08:00
|
|
|
--check-duplicates y
|
2021-11-17 17:09:36 +08:00
|
|
|
|
2022-03-22 18:38:20 +05:30
|
|
|
# ignore DeprecationWarning
|
|
|
|
filterwarnings =
|
2022-05-18 14:59:34 +08:00
|
|
|
ignore::DeprecationWarning:matplotlib.*:
|
|
|
|
ignore::DeprecationWarning:google.protobuf.*:
|
|
|
|
ignore::_pytest.warning_types.PytestExperimentalApiWarning
|
2022-03-22 18:38:20 +05:30
|
|
|
|
2021-11-17 17:09:36 +08: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-12-01 11:36:29 +08:00
|
|
|
|
|
|
|
# junit related
|
|
|
|
junit_family = xunit1
|
2022-01-20 17:39:30 +08:00
|
|
|
|
2021-12-01 11:36:29 +08:00
|
|
|
## log all to `system-out` when case fail
|
2022-01-20 17:39:30 +08:00
|
|
|
junit_logging = stdout
|
2021-12-01 11:36:29 +08:00
|
|
|
junit_log_passing_tests = False
|