Testing¶
Backend Tests¶
Tests are in packages/backend/tests/. The CI enforces ≥80% coverage.
CLI Tests¶
SDK Tests¶
End-to-End¶
For full integration testing, start the stack with Docker:
Writing Tests¶
Python¶
Follow the existing pattern in packages/backend/tests/. Use pytest fixtures:
import pytest
from app import create_app
@pytest.fixture
def client():
app = create_app({"TESTING": True})
with app.test_client() as client:
yield client
def test_health(client):
response = client.get("/health")
assert response.status_code == 200
TypeScript¶
Use Vitest or Jest: