pytest.ini 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. # ignore DeprecationWarning
  11. filterwarnings =
  12. ignore::DeprecationWarning:matplotlib.*:
  13. ignore::DeprecationWarning:google.protobuf.*:
  14. ignore::_pytest.warning_types.PytestExperimentalApiWarning
  15. markers =
  16. # target markers
  17. esp32: support esp32 target
  18. esp32s2: support esp32s2 target
  19. esp32s3: support esp32s3 target
  20. esp32c3: support esp32c3 target
  21. esp32c2: support esp32c2 target
  22. supported_targets: support all supported targets ('esp32', 'esp32s2', 'esp32c3', 'esp32s3', 'esp32c2')
  23. preview_targets: support all preview targets ('linux', 'esp32h2')
  24. all_targets: support all targets, including supported ones and preview ones
  25. # env markers
  26. generic: tests should be run on generic runners
  27. flash_suspend: support flash suspend feature
  28. ip101: connected via wired 10/100M ethernet
  29. lan8720: connected via LAN8720 ethernet transceiver
  30. octal_psram: runners with octal psram
  31. usb_host: usb host runners
  32. ethernet_ota: ethernet OTA runners
  33. flash_encryption: Flash Encryption runners
  34. ir_transceiver: runners with a pair of IR transmitter and receiver
  35. wifi_ota: wifi OTA runners
  36. flash_encryption_ota: flash encryprion ota ethernet runner
  37. flash_encryption_wifi_ota: flash encryprion ota wifi runner
  38. ethernet: ethernet runner
  39. ethernet_flash_8m: ethernet runner with 8mb flash
  40. wifi: wifi runner
  41. # multi-dut markers
  42. multi_dut_generic: tests should be run on generic runners, at least have two duts connected.
  43. # host_test markers
  44. host_test: tests which shouldn't be built at the build stage, and instead built in host_test stage.
  45. qemu: build and test using qemu-system-xtensa, not real target.
  46. # log related
  47. log_cli = True
  48. log_cli_level = INFO
  49. log_cli_format = %(asctime)s %(levelname)s %(message)s
  50. log_cli_date_format = %Y-%m-%d %H:%M:%S
  51. # junit related
  52. junit_family = xunit1
  53. ## log all to `system-out` when case fail
  54. junit_logging = stdout
  55. junit_log_passing_tests = False