March 2016
Intermediate to advanced
304 pages
8h 9m
English
This chapter covers
The previous chapter presented all the Spock blocks that you can use in a unit test, except for one. I left out the where: block on purpose because it deserves a chapter of its own. The where: block is used for parameterized tests. Parameterized tests are unit tests that share the same test logic (for example, when the temperature goes up, the reactor must shut down), but need to run on different parameters (for example, with low temperature and then with high temperature) in order to account for all cases.
This chapter covers both some theory on when to use parameterized ...
Read now
Unlock full access