テスト¶
バックエンドテスト¶
テストは packages/backend/tests/ にあります。CIは≥80%のカバレッジを強制します。
CLIテスト¶
SDKテスト¶
エンドツーエンド¶
完全な統合テストのために、Dockerでスタックを起動します:
テストの作成¶
Python¶
packages/backend/tests/ の既存のパターンに従ってください。pytest フィクスチャを使用します:
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¶
VitestまたはJestを使用します: