Files
esp-modbus/pytest.ini
2026-04-16 11:01:26 +01:00

39 lines
1.1 KiB
INI

[pytest]
# only the files with prefix `pytest_` would be recognized as pytest test scripts.
python_files = pytest_*.py
norecursedirs = managed_components* espressif__mdns*
# ignore PytestExperimentalApiWarning for record_xml_attribute
# set traceback to "short" to prevent the overwhelming tracebacks
addopts =
-s
--embedded-services esp,idf
--tb short
--skip-check-coredump y
--ignore-glob=pytest_*mdns*.py
# ignore DeprecationWarning
filterwarnings =
ignore::DeprecationWarning:matplotlib.*:
ignore::DeprecationWarning:google.protobuf.*:
ignore::_pytest.warning_types.PytestExperimentalApiWarning
env_markers =
# multi-dut markers
multi_dut_modbus_generic: generic Modbus dut
multi_dut_modbus_tcp: Modbus TCP runners with two duts connected
multi_dut_modbus_serial: Alias for Modbus RTU/ASCII runners with two duts connected
# 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
# junit related
junit_family = xunit1
## log all to `system-out` when case fail
junit_logging = stdout
junit_log_passing_tests = False