mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 12:05:54 +00:00
Add E2E tests for LangBot startup flow: - tests/e2e/utils/config_factory.py: minimal config generation - tests/e2e/utils/process_manager.py: LangBot subprocess management - tests/e2e/conftest.py: E2E fixtures (session-scoped process) - tests/e2e/test_startup.py: 12 tests for startup verification Tests verify: - boot.py + stages execution - database initialization (SQLite) - API availability - migrations applied Uses embedded databases (SQLite, Chroma) - no external dependencies. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
45 lines
831 B
INI
45 lines
831 B
INI
[pytest]
|
|
# Test discovery patterns
|
|
python_files = test_*.py
|
|
python_classes = Test*
|
|
python_functions = test_*
|
|
|
|
# Python path for imports
|
|
pythonpath = . tests
|
|
|
|
# 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
|
|
smoke: mark test as smoke test
|
|
slow: mark test as slow running
|
|
e2e: mark test as end-to-end test (requires real LangBot process)
|
|
|
|
# Coverage options (when using pytest-cov)
|
|
[coverage:run]
|
|
source = langbot
|
|
omit =
|
|
*/tests/*
|
|
*/test_*.py
|
|
*/__pycache__/*
|
|
*/site-packages/*
|
|
|
|
[coverage:report]
|
|
precision = 2
|
|
show_missing = True
|
|
skip_covered = False
|