契約テスト - CI/CD 用語集の定義
契約テストは、サービスのコンシューマーとプロバイダーが合意したメッセージ契約を守っていることを確認します。
契約テストは、両者を同時に実行することなく、共有された契約に対して各側面をテストすることで、2 つのサービスが交換するメッセージの形式について合意していることを検証します。
Pact にみられるコンシューマー駆動の契約テストでは、コンシューマーがプロバイダーの満たすべき期待を定義できます。完全なエンドツーエンドの構成なしに、破壊的な API 変更を捕捉します。
CI において
各サービスは契約の自分側を独立して実行するため、変更がコンシューマーを壊すような場合、プロバイダーの pipeline は素早く失敗できます。
関連ガイド
Integration Testing - CI/CD Glossary DefinitionIntegration Testing: Integration testing verifies that multiple components or services work correctly togethe…
End-to-End Testing - CI/CD Glossary DefinitionEnd-to-End Testing: End-to-end testing validates a complete user flow through the entire system, from the int…
Acceptance Test - CI/CD Glossary DefinitionAcceptance Test: An acceptance test verifies that a feature meets its business requirements from the user's p…