Mock - Definição do Glossário de CI/CD
Um mock é um test double configurado com expectativas sobre quais chamadas ele deve receber; o teste verifica se essas interações ocorreram, tornando os mocks adequados para checar comportamento em vez de apenas valores de retorno.
Guias relacionados
Stub - CI/CD Glossary DefinitionA stub is a test double that returns canned responses to calls, supplying the data a test needs without invok…
Test Double - CI/CD Glossary DefinitionA test double is any stand-in object that replaces a real dependency in a test - the umbrella term covering m…
Fixture - CI/CD Glossary DefinitionA fixture is the fixed, known state a test sets up before running - sample data, configured objects, a prepar…