2023-12-10 15:10:43 +01:00
|
|
|
[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
|
|
|
|
|
|
|
|
|
|
markers =
|
|
|
|
|
# target markers
|
|
|
|
|
esp32: support esp32 target
|
|
|
|
|
esp32s2: support esp32s2 target
|
|
|
|
|
esp32s3: support esp32s3 target
|
|
|
|
|
esp32c3: support esp32c3 target
|
|
|
|
|
esp32c2: support esp32c2 target
|
2024-09-02 03:12:36 +08:00
|
|
|
esp32p4: support esp32p4 target
|
|
|
|
|
esp32c5: support esp32c5 target
|
|
|
|
|
|
|
|
|
|
# special markers
|
|
|
|
|
temp_skip_ci: temp skip tests for specified targets only in ci
|
2023-12-10 15:10:43 +01:00
|
|
|
|
|
|
|
|
# env markers
|
|
|
|
|
generic: tests should be run on generic runners
|
|
|
|
|
|
|
|
|
|
# multi-dut markers
|
|
|
|
|
multi_dut_generic: tests should be run on generic runners, at least have two duts connected.
|
2024-09-02 03:12:36 +08:00
|
|
|
multi_dut_modbus_generic: generic Modbus dut
|
2023-12-10 15:10:43 +01:00
|
|
|
multi_dut_modbus_tcp: Modbus TCP runners with two duts connected
|
|
|
|
|
multi_dut_modbus_rs485: Modbus RTU/ASCII runners with two duts connected
|
|
|
|
|
multi_dut_modbus_serial: Alias for Modbus RTU/ASCII runners with two duts connected
|
|
|
|
|
generic_multi_device: generic multi device runners
|
|
|
|
|
|
|
|
|
|
# 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
|