pytest.ini 2.2 KB

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