Chapter 1. Introducing the Spock testing framework

This chapter covers

  • Introducing Spock
  • Bird’s-eye view of the testing process
  • Using Groovy to test Java
  • Understanding Spock’s place in the testing world

We live in the computer revolution. We’ve reached the point where computers are so commonplace that most of us carry a pocket-sized one all the time: a mobile phone. Mobile phones can now perform real-time face recognition, something that used to require a mainframe or computer cluster. At the same time, access to cheap and “always-on” internet services has created a communication layer that surrounds us.

As we enjoy the benefits of computerized services in our daily lives, our expectations are also changing. We expect information to be always ...

Get Java Testing with Spock now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.