pytest.ini 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. [pytest]
  2. # only the files with prefix `pytest_` would be recognized as pytest test scripts.
  3. python_files = pytest_*.py
  4. # ignore PytestExperimentalApiWarning for record_xml_attribute
  5. # set traceback to "short" to prevent the overwhelming tracebacks
  6. addopts =
  7. -s
  8. --embedded-services esp,idf
  9. --tb short
  10. --strict-markers
  11. --skip-check-coredump y
  12. --logfile-extension ".txt"
  13. # ignore DeprecationWarning
  14. filterwarnings =
  15. ignore::DeprecationWarning:matplotlib.*:
  16. ignore::DeprecationWarning:google.protobuf.*:
  17. ignore::_pytest.warning_types.PytestExperimentalApiWarning
  18. markers =
  19. # target markers
  20. esp32: support esp32 target
  21. esp32s2: support esp32s2 target
  22. esp32s3: support esp32s3 target
  23. esp32c3: support esp32c3 target
  24. esp32c2: support esp32c2 target
  25. esp32c6: support esp32c6 target
  26. esp32h4: support esp32h4 target
  27. supported_targets: support all supported targets ('esp32', 'esp32s2', 'esp32c3', 'esp32s3', 'esp32c2', 'esp32c6')
  28. preview_targets: support all preview targets ('linux', 'esp32h4')
  29. all_targets: support all targets, including supported ones and preview ones
  30. temp_skip_ci: temp skip ci for specified targets, can only work with `supported_targets`, `preview_targets`, `all_targets`
  31. # env markers
  32. generic: tests should be run on generic runners
  33. nightly_run: tests should be executed as part of the nightly trigger pipeline
  34. flash_suspend: support flash suspend feature
  35. ip101: connected via wired 10/100M ethernet
  36. lan8720: connected via LAN8720 ethernet transceiver
  37. quad_psram: runners with quad psram
  38. octal_psram: runners with octal psram
  39. usb_host: usb host runners
  40. usb_host_flash_disk: usb host runners with USB flash disk attached
  41. usb_device: usb device runners
  42. ethernet_ota: ethernet OTA runners
  43. flash_encryption: Flash Encryption runners
  44. flash_encryption_f4r8: Flash Encryption runners with 4-line flash and 8-line psram
  45. flash_encryption_f8r8: Flash Encryption runners with 8-line flash and 8-line psram
  46. flash_mutli: Multiple flash chips tests
  47. psram: Chip has 4-line psram
  48. ir_transceiver: runners with a pair of IR transmitter and receiver
  49. twai_transceiver: runners with a TWAI PHY transceiver
  50. flash_encryption_wifi_high_traffic: Flash Encryption runners with wifi high traffic support
  51. ethernet: ethernet runner
  52. ethernet_flash_8m: ethernet runner with 8mb flash
  53. ethernet_router: both the runner and dut connect to the same router through ethernet NIC
  54. wifi_ap: a wifi AP in the environment
  55. wifi_router: both the runner and dut connect to the same wifi router
  56. wifi_high_traffic: wifi high traffic runners
  57. wifi_wlan: wifi runner with a wireless NIC
  58. xtal_26mhz: runner with 26MHz xtal on board
  59. xtal_40mhz: runner with 40MHz xtal on board
  60. external_flash: external flash memory connected via VSPI (FSPI)
  61. sdcard_sdmode: sdcard running in SD mode
  62. sdcard_spimode: sdcard running in SPI mode
  63. MSPI_F8R8: runner with Octal Flash and Octal PSRAM
  64. MSPI_F4R8: runner with Quad Flash and Octal PSRAM
  65. MSPI_F4R4: runner with Quad Flash and Quad PSRAM
  66. test_jtag_arm: runner where the chip is accessible through JTAG as well
  67. adc: ADC related tests should run on adc runners
  68. xtal32k: Runner with external 32k crystal connected
  69. no32kXtal: Runner with no external 32k crystal connected
  70. multi_dut_modbus_rs485: a pair of runners connected by RS485 bus
  71. psramv0: Runner with PSRAM version 0
  72. # multi-dut markers
  73. ieee802154: ieee802154 related tests should run on ieee802154 runners.
  74. i154_multi_dut: tests should be used for i154, such as openthread.
  75. wifi_two_dut: tests should be run on runners which has two wifi duts connected.
  76. generic_multi_device: generic multiple devices whose corresponding gpio pins are connected to each other.
  77. twai_network: multiple runners form a TWAI network.
  78. sdio_master_slave: Test sdio multi board.
  79. # host_test markers
  80. host_test: tests which shouldn not be built at the build stage, and instead built in host_test stage.
  81. qemu: build and test using qemu-system-xtensa, not real target.
  82. # log related
  83. log_cli = True
  84. log_cli_level = INFO
  85. log_cli_format = %(asctime)s %(levelname)s %(message)s
  86. log_cli_date_format = %Y-%m-%d %H:%M:%S
  87. # junit related
  88. junit_family = xunit1
  89. ## log all to `system-out` when case fail
  90. junit_logging = stdout
  91. junit_log_passing_tests = False