pytest.ini 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. markers =
  12. esp32: support esp32 target
  13. esp32s2: support esp32s2 target
  14. esp32s3: support esp32s3 target
  15. esp32c3: support esp32c3 target
  16. supported_targets: support all supported targets ('esp32', 'esp32s2', 'esp32c3', 'esp32s3')
  17. preview_targets: support all preview targets ('linux', 'esp32h2', 'esp32c2')
  18. all_targets: support all targets, including supported ones and preview ones
  19. # env markers
  20. generic: tests should be run on generic runners
  21. flash_suspend: support flash suspend feature
  22. ip101: connected via wired 10/100M ethernet
  23. lan8720: connected via LAN8720 ethernet transceiver
  24. octal_psram: runners with octal psram
  25. usb_host: usb host runners
  26. # log related
  27. log_cli = True
  28. log_cli_level = INFO
  29. log_cli_format = %(asctime)s %(levelname)s %(message)s
  30. log_cli_date_format = %Y-%m-%d %H:%M:%S
  31. # junit related
  32. junit_family = xunit1
  33. ## log all to `system-out` when case fail
  34. junit_logging = stdout
  35. junit_log_passing_tests = False