Fletcher, Rob
Spock - Up and Running: Writing Expressive Tests in Java and Groovy
- ISBN 13:
- 9781491923290
- author:
- Fletcher, Rob
- format:
- Paperback
- publisher:
- O'Reilly Media
- language:
- English
- Publication Year:
- 2017
- Pages:
- 372
- Dimensions:
- 23.11 x 17.78 x 2.03 centimetres
- Genre:
- Computers, Programming, Java
- Condition:
- New
Description
Write concise and highly readable tests with Spock, the innovative testing framework for Java and Groovy. This practical guide takes you from basics to advanced topics, using fully worked integration examples. You'll learn how to write simple unit tests, understand Spock specifications, and explores interaction testing with mocks and stubs. Through a standalone, test-driven development example, you'll build a simple web application that allows users to post short messages. Along the way, you'll discover how much easier it is to write automated tests with Spock's straightforward language. You'll also learn about parameterized tests, writing idiomatic Spock code, and driving tests with file or database input. By the end of this book, you'll be able to write concise and highly readable tests with confidence, using Spock's intuitive syntax and advanced features.