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