March 2016
Intermediate to advanced
304 pages
8h 9m
English
This chapter covers
All the Spock tests you’ve seen so far have been presented to you as a finished unit test, with no explanation of how to reach that particular code structure. You’re probably eager to create your own Spock tests from scratch. In this chapter, you’ll see all the building blocks that compose a Spock test and how they fit together (various combinations are possible).
You’ll also learn about the lifecycle of a Spock test and how to interact with its various phases. Finally, you’ll see some tricks for handling lengthy Spock tests and making them more readable ...
Read now
Unlock full access