pytest.ini 889 B

123456789101112131415161718192021222324252627282930313233
  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 -vv
  8. --embedded-services esp,idf
  9. --tb short
  10. --strict-markers
  11. --skip-check-coredump y
  12. --logfile-extension ".txt"
  13. --check-duplicates y
  14. # ignore DeprecationWarning
  15. filterwarnings =
  16. ignore::DeprecationWarning:matplotlib.*:
  17. ignore::DeprecationWarning:google.protobuf.*:
  18. ignore::_pytest.warning_types.PytestExperimentalApiWarning
  19. # log related
  20. log_cli = True
  21. log_cli_level = INFO
  22. log_cli_format = %(asctime)s %(levelname)s %(message)s
  23. log_cli_date_format = %Y-%m-%d %H:%M:%S
  24. # junit related
  25. junit_family = xunit1
  26. ## log all to `system-out` when case fail
  27. junit_logging = stdout
  28. junit_log_passing_tests = False