mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-04-25 08:42:06 +00:00
- pytest-timeout>=2.1.0 added; timeout=30s per test prevents runaway tests from hanging CI - asyncio_mode=auto in pyproject.toml [tool.pytest.ini_options]; async tests run without per-test markers - fail_under=27 in [tool.coverage.report] as the enforced coverage floor; target 40% tracked in TASK-14 - CI test matrix updated for Python 3.9, 3.11, 3.12
32 lines
656 B
INI
32 lines
656 B
INI
[pytest]
|
|
# Pytest configuration for meshcore-bot tests
|
|
|
|
# Test discovery patterns
|
|
python_files = test_*.py *_test.py
|
|
python_classes = Test*
|
|
python_functions = test_*
|
|
|
|
# Test paths
|
|
testpaths = tests
|
|
|
|
# Async test support
|
|
asyncio_mode = auto
|
|
|
|
# Coverage configuration (optional)
|
|
# [tool:pytest]
|
|
# addopts = --cov=modules --cov-report=html --cov-report=term-missing
|
|
|
|
# Output options
|
|
addopts =
|
|
-v
|
|
--tb=short
|
|
--strict-markers
|
|
--cov=modules
|
|
--cov-report=term-missing
|
|
|
|
# Markers for test categorization
|
|
markers =
|
|
unit: Unit tests (isolated, with mocks)
|
|
integration: Integration tests (with real database)
|
|
slow: Slow running tests
|