pytest.ini 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. # log related
  26. log_cli = True
  27. log_cli_level = INFO
  28. log_cli_format = %(asctime)s %(levelname)s %(message)s
  29. log_cli_date_format = %Y-%m-%d %H:%M:%S
  30. # junit related
  31. junit_family = xunit1
  32. ## log all to `system-out` when case fail
  33. junit_logging = stdout
  34. junit_log_passing_tests = False