Test Impact Graph とは何か
test impact graph は、coverage や静的解析から構築される、ソースファイルとそれらを実行するテストを結びつける依存関係マップです。変更されたファイルの集合が与えられると、影響を受ける可能性のあるテストのサブセットを特定します。CI はこれを使って、スイート全体ではなくそれらのテストだけを実行します。
なぜ重要か
影響を受けたテストだけを実行することで、フィードバック時間が短縮され、Latchkey のマネージド runner では CI 実行が消費する課金対象の分数も削減されます。リスクは、実際の依存関係を見落とす不完全な graph であることなので、チームは定期的にそれを再検証します。
関連ガイド
What Is Feature Branch Testing?Feature branch testing runs the full test suite against a branch before it merges, catching regressions in is…
What Is a Coverage Gate?A coverage gate is a CI rule that fails a build when test coverage falls below a set threshold, enforcing a m…
What Is a Flaky Test Detector?A flaky test detector identifies tests that pass and fail nondeterministically by analyzing run history, so u…