mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-25 03:15:06 +08:00
40 lines
682 B
INI
40 lines
682 B
INI
[pytest]
|
|
# Test discovery patterns
|
|
python_files = test_*.py
|
|
python_classes = Test*
|
|
python_functions = test_*
|
|
|
|
# Test paths
|
|
testpaths = tests
|
|
|
|
# Asyncio configuration
|
|
asyncio_mode = auto
|
|
|
|
# Output options
|
|
addopts =
|
|
-v
|
|
--strict-markers
|
|
--tb=short
|
|
--disable-warnings
|
|
|
|
# Markers
|
|
markers =
|
|
asyncio: mark test as async
|
|
unit: mark test as unit test
|
|
integration: mark test as integration test
|
|
slow: mark test as slow running
|
|
|
|
# Coverage options (when using pytest-cov)
|
|
[coverage:run]
|
|
source = langbot.pkg
|
|
omit =
|
|
*/tests/*
|
|
*/test_*.py
|
|
*/__pycache__/*
|
|
*/site-packages/*
|
|
|
|
[coverage:report]
|
|
precision = 2
|
|
show_missing = True
|
|
skip_covered = False
|