March 2016
Intermediate to advanced
304 pages
8h 9m
English
This chapter covers
This chapter starts with a quick reminder of the theory behind mocks and stubs (the terminology used by Spock). If you’ve never used them before in your unit tests, feel free to consult other external sources to complete your knowledge.[1] You may have already seen them as test doubles or fake collaborators, so if you know the theory, you can skip ahead to section 6.2 in order to see the implementation of Spock for fake objects.
A good start is the book Effective Unit Testing by Lasse Koskela (Manning, ...
Read now
Unlock full access