Files
meshcore-bot/pytest.ini
Stacy Olivas ba32accc44 infra: pytest configuration, timeout enforcement, and coverage threshold
- 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
2026-03-17 18:07:18 -07:00

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