pytest.ini 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. # ignore DeprecationWarning
  13. filterwarnings =
  14. ignore::DeprecationWarning:matplotlib.*:
  15. ignore::DeprecationWarning:google.protobuf.*:
  16. ignore::_pytest.warning_types.PytestExperimentalApiWarning
  17. markers =
  18. # target markers
  19. esp32: support esp32 target
  20. esp32s2: support esp32s2 target
  21. esp32s3: support esp32s3 target
  22. esp32c3: support esp32c3 target
  23. esp32c2: support esp32c2 target
  24. esp32h2: support esp32h2 target
  25. supported_targets: support all supported targets ('esp32', 'esp32s2', 'esp32c3', 'esp32s3', 'esp32c2')
  26. preview_targets: support all preview targets ('linux', 'esp32h2')
  27. all_targets: support all targets, including supported ones and preview ones
  28. # env markers
  29. generic: tests should be run on generic runners
  30. nightly_run: tests should be executed as part of the nightly trigger pipeline
  31. flash_suspend: support flash suspend feature
  32. ip101: connected via wired 10/100M ethernet
  33. lan8720: connected via LAN8720 ethernet transceiver
  34. quad_psram: runners with quad psram
  35. octal_psram: runners with octal psram
  36. usb_host: usb host runners
  37. usb_device: usb device runners
  38. ethernet_ota: ethernet OTA runners
  39. flash_encryption: Flash Encryption runners
  40. flash_encryption_f4r8: Flash Encryption runners with 4-line flash and 8-line psram
  41. flash_encryption_f8r8: Flash Encryption runners with 8-line flash and 8-line psram
  42. flash_mutli: Multiple flash chips tests
  43. psram: Chip has 4-line psram
  44. ir_transceiver: runners with a pair of IR transmitter and receiver
  45. flash_encryption_wifi_high_traffic: Flash Encryption runners with wifi high traffic support
  46. ethernet: ethernet runner
  47. ethernet_flash_8m: ethernet runner with 8mb flash
  48. ethernet_router: both the runner and dut connect to the same router through ethernet NIC
  49. wifi_ap: a wifi AP in the environment
  50. wifi_router: both the runner and dut connect to the same wifi router
  51. wifi_high_traffic: wifi high traffic runners
  52. wifi_wlan: wifi runner with a wireless NIC
  53. xtal_26mhz: runner with 26MHz xtal on board
  54. xtal_40mhz: runner with 40MHz xtal on board
  55. external_flash: external flash memory connected via VSPI (FSPI)
  56. sdcard_sdmode: sdcard running in SD mode
  57. sdcard_spimode: sdcard running in SPI mode
  58. MSPI_F8R8: runner with Octal Flash and Octal PSRAM
  59. MSPI_F4R8: runner with Quad Flash and Octal PSRAM
  60. MSPI_F4R4: runner with Quad Flash and Quad PSRAM
  61. test_jtag_arm: runner where the chip is accessible through JTAG as well
  62. adc: ADC related tests should run on adc runners
  63. # multi-dut markers
  64. ieee802154: ieee802154 related tests should run on ieee802154 runners.
  65. i154_multi_dut: tests should be used for i154, such as openthread.
  66. wifi_two_dut: tests should be run on runners which has two wifi duts connected.
  67. generic_multi_device: generic multiple devices whose corresponding gpio pins are connected to each other.
  68. # host_test markers
  69. host_test: tests which shouldn not be built at the build stage, and instead built in host_test stage.
  70. qemu: build and test using qemu-system-xtensa, not real target.
  71. # log related
  72. log_cli = True
  73. log_cli_level = INFO
  74. log_cli_format = %(asctime)s %(levelname)s %(message)s
  75. log_cli_date_format = %Y-%m-%d %H:%M:%S
  76. # junit related
  77. junit_family = xunit1
  78. ## log all to `system-out` when case fail
  79. junit_logging = stdout
  80. junit_log_passing_tests = False