pytest.ini 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. flash_suspend: support flash suspend feature
  25. ip101: connected via wired 10/100M ethernet
  26. lan8720: connected via LAN8720 ethernet transceiver
  27. octal_psram: runners with octal psram
  28. usb_host: usb host runners
  29. ethernet_ota: ethernet OTA runners
  30. flash_encryption: Flash Encryption runners
  31. ir_transceiver: runners with a pair of IR transmitter and receiver
  32. # log related
  33. log_cli = True
  34. log_cli_level = INFO
  35. log_cli_format = %(asctime)s %(levelname)s %(message)s
  36. log_cli_date_format = %Y-%m-%d %H:%M:%S
  37. # junit related
  38. junit_family = xunit1
  39. ## log all to `system-out` when case fail
  40. junit_logging = stdout
  41. junit_log_passing_tests = False