Test Doubles

When writing a Unit test for a piece of code, we need to isolate this piece of code from all other dependencies it has. These dependencies are objects of other classes that do not need to be tested in this particular unit test. For example, a piece of code we are unit testing might depend…

Read More Test Doubles in Swift – Dummy, Stub, Fake, Mock and Spy