[pytest] # Pytest configuration for BaoLife/Lichun # Test discovery testpaths = tests python_files = test_*.py python_classes = Test* python_functions = test_* pythonpath = ws # Async support asyncio_mode = auto # Output settings addopts = -v --tb=short --strict-markers --color=yes # Test markers markers = unit: Unit tests (fast, isolated) integration: Integration tests (slower, DB/WebSocket) e2e: End-to-end tests (slowest, full system) load: Load and performance tests slow: Slow tests (> 1s) db: Tests requiring database websocket: Tests requiring WebSocket property: Property-based tests asyncio: Async tests # Timeout settings (optional, requires pytest-timeout) # timeout = 300 # timeout_method = thread # Coverage settings (optional, requires pytest-cov) # Uncomment to enable coverage reporting # addopts = --cov=ws --cov-report=html --cov-report=term-missing # Logging log_cli = false log_cli_level = INFO