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-05-25 03:28:29 +00:00
|
|
|
--skip-check-coredump y
|
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
|
|
|
markers =
|
2022-05-18 06:59:34 +00:00
|
|
|
# target markers
|
2021-11-17 09:09:36 +00:00
|
|
|
esp32: support esp32 target
|
2021-12-01 03:36:29 +00:00
|
|
|
esp32s2: support esp32s2 target
|
2021-12-01 03:32:50 +00:00
|
|
|
esp32s3: support esp32s3 target
|
2021-11-17 09:09:36 +00:00
|
|
|
esp32c3: support esp32c3 target
|
2022-05-07 07:26:45 +00:00
|
|
|
esp32c2: support esp32c2 target
|
|
|
|
supported_targets: support all supported targets ('esp32', 'esp32s2', 'esp32c3', 'esp32s3', 'esp32c2')
|
|
|
|
preview_targets: support all preview targets ('linux', 'esp32h2')
|
2021-12-03 07:39:18 +00:00
|
|
|
all_targets: support all targets, including supported ones and preview ones
|
2021-11-17 09:09:36 +00:00
|
|
|
|
2022-01-19 04:12:15 +00:00
|
|
|
# env markers
|
|
|
|
generic: tests should be run on generic runners
|
|
|
|
flash_suspend: support flash suspend feature
|
|
|
|
ip101: connected via wired 10/100M ethernet
|
|
|
|
lan8720: connected via LAN8720 ethernet transceiver
|
2021-09-23 04:06:13 +00:00
|
|
|
octal_psram: runners with octal psram
|
2022-02-10 10:16:53 +00:00
|
|
|
usb_host: usb host runners
|
2022-03-22 09:57:10 +00:00
|
|
|
ethernet_ota: ethernet OTA runners
|
2022-04-14 04:54:04 +00:00
|
|
|
flash_encryption: Flash Encryption runners
|
2022-04-07 05:10:57 +00:00
|
|
|
ir_transceiver: runners with a pair of IR transmitter and receiver
|
2022-04-13 11:53:25 +00:00
|
|
|
wifi_ota: wifi OTA runners
|
|
|
|
flash_encryption_ota: flash encryprion ota ethernet runner
|
|
|
|
flash_encryption_wifi_ota: flash encryprion ota wifi runner
|
|
|
|
ethernet: ethernet runner
|
|
|
|
ethernet_flash_8m: ethernet runner with 8mb flash
|
2022-05-10 09:31:03 +00:00
|
|
|
wifi: wifi runner
|
2022-06-07 01:31:47 +00:00
|
|
|
wifi_bt: wifi runner with bluetooth
|
2022-05-26 03:30:31 +00:00
|
|
|
deepsleep_temp_tag: temporary env for running potentially harmfull deepsleep related tests
|
2022-01-19 04:12:15 +00:00
|
|
|
|
2022-05-18 06:59:34 +00:00
|
|
|
# multi-dut markers
|
2022-05-07 04:18:56 +00:00
|
|
|
multi_dut_generic: tests should be run on generic runners, at least have two duts connected.
|
|
|
|
|
2022-05-18 06:59:34 +00:00
|
|
|
# host_test markers
|
|
|
|
host_test: tests which shouldn't be built at the build stage, and instead built in host_test stage.
|
|
|
|
qemu: build and test using qemu-system-xtensa, not real target.
|
|
|
|
|
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
|