Mutation Score Threshold とは何か
mutation score threshold は、テストスイートが捉える、注入されたコード mutation の割合に対して設定された最小値です。mutation testing は意図的に小さな欠陥を導入し、テストがそれに応じて失敗するかを確認します。スコアは kill された割合です。threshold は、検出されずに生き残る mutation が多すぎるときに build を失敗させます。
なぜ重要か
mutation score は、テストが本当に振る舞いをアサートしているかを明らかにし、結果を一切チェックしない高 coverage のスイートを露呈させます。threshold はそれを強制可能な品質基準に変えますが、mutation の実行は計算負荷が重いです。
関連ガイド
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 Snapshot Approval?Snapshot approval is reviewing and accepting a changed test snapshot, confirming the new output is intended b…
What Is a Test Impact Graph?A test impact graph maps which tests depend on which source files, so a change can run only the affected test…