pytest.ini 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. supported_targets: support all supported targets ('esp32', 'esp32s2', 'esp32c3', 'esp32s3')
  20. preview_targets: support all preview targets ('linux', 'esp32h2', 'esp32c2')
  21. all_targets: support all targets, including supported ones and preview ones
  22. # env markers
  23. generic: tests should be run on generic runners
  24. generic_s3_fixme: temporary workaround s3 runner
  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. # log related
  32. log_cli = True
  33. log_cli_level = INFO
  34. log_cli_format = %(asctime)s %(levelname)s %(message)s
  35. log_cli_date_format = %Y-%m-%d %H:%M:%S
  36. # junit related
  37. junit_family = xunit1
  38. ## log all to `system-out` when case fail
  39. junit_logging = stdout
  40. junit_log_passing_tests = False