Cargando…
Running tests in isolation using mock objects
<!--HTML-->"Mocking" is a technique used in unit-testing that replace external dependencies with "fake" objects, simulating the behavior of the real ones. This process is usually applied when the existence of these dependencies makes impossible to write proper tests or when...
Autor principal: | |
---|---|
Lenguaje: | eng |
Publicado: |
2014
|
Materias: | |
Acceso en línea: | http://cds.cern.ch/record/1957615 |
Sumario: | <!--HTML-->"Mocking" is a technique used in unit-testing that replace external dependencies with "fake" objects, simulating the behavior of the real ones. This process is usually applied when the existence of these dependencies makes impossible to write proper tests or when its result can be non-deterministic, hard to reproduce and/or slow to calculate. In this talk, I will briefly describe this technique and show how and where to use it through some examples. |
---|