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 =
|
2023-05-23 22:53:57 -04:00
|
|
|
-s -vv
|
2021-11-30 22:36:29 -05:00
|
|
|
--embedded-services esp,idf
|
2022-03-07 23:45:34 -05:00
|
|
|
--tb short
|
2022-10-25 10:09:38 -04:00
|
|
|
--strict-markers
|
2022-05-24 23:28:29 -04:00
|
|
|
--skip-check-coredump y
|
2022-10-28 01:21:27 -04:00
|
|
|
--logfile-extension ".txt"
|
2022-12-05 01:48:12 -05:00
|
|
|
--check-duplicates y
|
2023-11-28 08:38:47 -05:00
|
|
|
--ignore-glob */managed_components/*
|
2024-01-12 08:42:00 -05:00
|
|
|
--ignore pytest_embedded_log
|
2021-11-17 04:09:36 -05:00
|
|
|
|
2022-03-22 09:08:20 -04:00
|
|
|
# ignore DeprecationWarning
|
|
|
|
filterwarnings =
|
2022-05-18 02:59:34 -04:00
|
|
|
ignore::DeprecationWarning:matplotlib.*:
|
|
|
|
ignore::DeprecationWarning:google.protobuf.*:
|
|
|
|
ignore::_pytest.warning_types.PytestExperimentalApiWarning
|
2022-03-22 09:08:20 -04: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
|