pytest.ini 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. -W ignore::_pytest.warning_types.PytestExperimentalApiWarning
  10. --tb short
  11. # ignore DeprecationWarning
  12. filterwarnings =
  13. ignore:Call to deprecated create function (.*)\(\):DeprecationWarning
  14. markers =
  15. esp32: support esp32 target
  16. esp32s2: support esp32s2 target
  17. esp32s3: support esp32s3 target
  18. esp32c3: support esp32c3 target
  19. esp32c2: support esp32c2 target
  20. supported_targets: support all supported targets ('esp32', 'esp32s2', 'esp32c3', 'esp32s3', 'esp32c2')
  21. preview_targets: support all preview targets ('linux', 'esp32h2')
  22. all_targets: support all targets, including supported ones and preview ones
  23. # env markers
  24. generic: tests should be run on generic runners
  25. flash_suspend: support flash suspend feature
  26. ip101: connected via wired 10/100M ethernet
  27. lan8720: connected via LAN8720 ethernet transceiver
  28. octal_psram: runners with octal psram
  29. usb_host: usb host runners
  30. ethernet_ota: ethernet OTA runners
  31. flash_encryption: Flash Encryption runners
  32. ir_transceiver: runners with a pair of IR transmitter and receiver
  33. ## multi-dut markers
  34. multi_dut_generic: tests should be run on generic runners, at least have two duts connected.
  35. # log related
  36. log_cli = True
  37. log_cli_level = INFO
  38. log_cli_format = %(asctime)s %(levelname)s %(message)s
  39. log_cli_date_format = %Y-%m-%d %H:%M:%S
  40. # junit related
  41. junit_family = xunit1
  42. ## log all to `system-out` when case fail
  43. junit_logging = stdout
  44. junit_log_passing_tests = False