Integration Test
統合テスト
統合テストは、システムの2つ以上の部分が実際の接続ポイントを通じて一緒に動作するかどうかを確認します。
もう一つの例
バックエンドテストは、既にサンプル注文がある実際のテストデータベースにAPIリクエストを送信します。エンドポイントは1件の注文を保存し、約束されたフィールドを返さなければなりません。偽のストアで1つのデータマッピング関数をテストすることは、むしろユニットテストです。
主な部分
- 01参加しているコンポーネント
- 02実際のインターフェース
- 03境界横断アサーション
以下の場合に使用します
コンポーネントやインフラ間の実インターフェースに正しい動作が依存する場合、この用語を使用します。
以下の場合は使用しないでください
小さいテストで十分に証明できる場合に、すべてのエッジケースを遅い統合テストにしないでください。
コードで使用する名前
component A ↔ real boundary B 出荷前に
Check the environment and prepared test data (fixture). Define a result you can observe, failure and edge cases, isolation, stable inputs, useful error details, and cleanup. Set a time budget, owner, and flaky-test rule.
Outcome:Complete the task with 統合テスト (Integration Test)。 User context:バックエンドテストは、既にサンプル注文がある実際のテストデータベースにAPIリクエストを送信します。エンドポイントは1件の注文を保存し、約束されたフィールドを返さなければなりません。偽のストアで1つのデータマッピング関数をテストすることは、むしろユニットテストです。 Validation approach:統合テスト (Integration Test)。 Why it fits:コンポーネントやインフラ間の実インターフェースに正しい動作が依存する場合、この用語を使用します。 Do not use it when:小さいテストで十分に証明できる場合に、すべてのエッジケースを遅い統合テストにしないでください。 Test requirements: Name the system and test environment. Define prepared test data, other inputs, and the result you can observe. Include failure and edge cases, allowed error, isolation, and cleanup. Test operations: Make failures easy to diagnose. Control random or changing inputs. Name an owner. Keep the test fast and simple enough for its release gate. Acceptance criteria: The test fails for the known bug and passes after the fix. It repeats in the target environment, gives useful evidence, and does not expose or change unrelated data. Evidence and limits (evidence boundary):その情報源にとって公式です。他のプラットフォームやチームはその用語を別の方法で使用する場合があります。 Unknowns to confirm: Release gate, environment, prepared test data, allowed error, time budget, owner, and flaky-test rule.
このリクエストを確認する
Review how 統合テスト (Integration Test) is used now. Definition: 統合テストは、システムの2つ以上の部分が実際の接続ポイントを通じて一緒に動作するかどうかを確認します。 Release checks: Check the environment and prepared test data (fixture). Define a result you can observe, failure and edge cases, isolation, stable inputs, useful error details, and cleanup. Set a time budget, owner, and flaky-test rule. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.