Assertion - CI/CD用語集の定義
アサーションはテスト内で条件をチェックし、その条件が満たされないときにテストを失敗させます。
アサーションとは、テスト内で条件をチェックし、その条件が偽であればテストを失敗させるステートメントです。アサーションは、コードの実行を成功または失敗の結果に変えるものです。
コードを実行するがアサーションを行わないテストは、無条件に成功し、誤った安心感を与えます。ミューテーションテストはこれを明らかにするために設計されています。
関連ガイド
Mutation Score - CI/CD Glossary DefinitionMutation Score: A mutation score is the percentage of injected code changes (mutants) that a test suite detec…
Code Coverage - CI/CD Glossary DefinitionCode Coverage: Code coverage measures what fraction of the code was exercised by the test suite, reported as…