pytest.ini.template 996 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # pytest.ini - pytest configuration
  2. # Copy to your project root and customize
  3. [pytest]
  4. # Test discovery
  5. testpaths = tests
  6. python_files = test_*.py *_test.py
  7. python_classes = Test*
  8. python_functions = test_*
  9. # Output options
  10. addopts =
  11. -v
  12. --strict-markers
  13. --tb=short
  14. -ra
  15. # Async mode (pytest-asyncio)
  16. asyncio_mode = auto
  17. # Logging
  18. log_cli = true
  19. log_cli_level = WARNING
  20. log_cli_format = %(asctime)s [%(levelname)8s] %(name)s: %(message)s
  21. # Custom markers
  22. markers =
  23. slow: marks tests as slow (deselect with '-m "not slow"')
  24. integration: marks integration tests
  25. e2e: marks end-to-end tests
  26. unit: marks unit tests
  27. # Warnings
  28. filterwarnings =
  29. error
  30. ignore::DeprecationWarning
  31. ignore::PendingDeprecationWarning
  32. # Coverage (pytest-cov)
  33. # Uncomment to enable by default:
  34. # addopts = --cov=src --cov-report=term-missing
  35. # Minimum version
  36. minversion = 7.0
  37. # Timeout (pytest-timeout)
  38. # timeout = 60
  39. # Parallel execution (pytest-xdist)
  40. # addopts = -n auto