Test Double - CI/CD用語集の定義
Test doubleは、テスト内で実際の協力者の代わりに置かれるあらゆるオブジェクト(mock、stub、spy、fake)を指す総称であり、テスト対象のユニットを、遅い・非決定的・利用できない依存から隔離するために使われます。
関連ガイド
Mock - CI/CD Glossary DefinitionA mock is a test double pre-programmed with expectations about how it should be called, failing the test if t…
Stub - CI/CD Glossary DefinitionA stub is a test double that returns canned responses to calls, supplying the data a test needs without invok…
Fixture - CI/CD Glossary DefinitionA fixture is the fixed, known state a test sets up before running - sample data, configured objects, a prepar…