53 lines
983 B
INI
53 lines
983 B
INI
[pytest]
|
|
# Pytest configuration
|
|
|
|
# Test discovery patterns
|
|
python_files = test_*.py
|
|
python_classes = Test*
|
|
python_functions = test_*
|
|
|
|
# Test paths
|
|
testpaths = tests
|
|
|
|
# Async support
|
|
asyncio_mode = auto
|
|
|
|
# Output options
|
|
addopts =
|
|
-v
|
|
--strict-markers
|
|
--tb=short
|
|
--cov=app
|
|
--cov-report=term-missing
|
|
--cov-report=html
|
|
--cov-report=xml
|
|
|
|
# Markers
|
|
markers =
|
|
unit: Unit tests
|
|
integration: Integration tests
|
|
e2e: End-to-end tests (requires all services running)
|
|
e2e_ift: E2E tests for IFT environment
|
|
e2e_psi: E2E tests for PSI environment
|
|
e2e_prod: E2E tests for PROD environment
|
|
slow: Slow running tests
|
|
|
|
# Coverage options
|
|
[coverage:run]
|
|
source = app
|
|
omit =
|
|
*/tests/*
|
|
*/test_*.py
|
|
*/__pycache__/*
|
|
*/site-packages/*
|
|
|
|
[coverage:report]
|
|
exclude_lines =
|
|
pragma: no cover
|
|
def __repr__
|
|
raise AssertionError
|
|
raise NotImplementedError
|
|
if __name__ == .__main__.:
|
|
if TYPE_CHECKING:
|
|
@abstractmethod
|