36 lines
572 B
INI
36 lines
572 B
INI
|
|
[pytest]
|
||
|
|
# Pytest configuration
|
||
|
|
|
||
|
|
# Test discovery patterns
|
||
|
|
python_files = test_*.py
|
||
|
|
python_classes = Test*
|
||
|
|
python_functions = test_*
|
||
|
|
|
||
|
|
# Minimum version
|
||
|
|
minversion = 7.0
|
||
|
|
|
||
|
|
# Test paths
|
||
|
|
testpaths = tests
|
||
|
|
|
||
|
|
# Output options
|
||
|
|
addopts =
|
||
|
|
-v
|
||
|
|
--strict-markers
|
||
|
|
--tb=short
|
||
|
|
--cov=src/app
|
||
|
|
--cov-report=term-missing
|
||
|
|
--cov-report=html
|
||
|
|
--cov-report=xml
|
||
|
|
--asyncio-mode=auto
|
||
|
|
|
||
|
|
# Markers
|
||
|
|
markers =
|
||
|
|
unit: Unit tests
|
||
|
|
integration: Integration tests
|
||
|
|
slow: Slow-running tests
|
||
|
|
api: API tests
|
||
|
|
db: Database tests
|
||
|
|
|
||
|
|
# Async support
|
||
|
|
asyncio_mode = auto
|