Assertion - CI/CD用語集の定義
assertion は、実際の値と期待される値を比較し、それらが異なる場合にテストを失敗させる、テスト内のチェックです。例えば assertEqual(actual, expected) や expect(x).toBe(y) です。
失敗メッセージ
良い assertion は期待値と実際の値を示す diff を生成し、これは CI job が失敗したときに最初に読むものです。より明確な失敗のために、汎用的な truthiness(assertTrue)よりも具体的な assertion(toEqual)を優先してください。
関連ガイド
Test Runner - CI/CD Glossary DefinitionTest Runner: A test runner is the tool that discovers test cases, executes them, and reports pass/fail result…
Test Harness - CI/CD Glossary DefinitionTest Harness: A test harness is the surrounding code and configuration that loads the system under test, driv…