1 option
Spock : up and running : writing expressive tests in Java and Groovy / Rob Fletcher.
- Format:
- Book
- Author/Creator:
- Fletcher, Rob, author.
- Language:
- English
- Subjects (All):
- Computer software--Testing.
- Computer software.
- Java (Computer program language).
- Groovy (Computer program language).
- Physical Description:
- 1 online resource (350 pages) : illustrations (some color)
- Edition:
- First edition.
- Place of Publication:
- Beijing, [China] : O'Reilly, 2017.
- System Details:
- text file
- Summary:
- Most developers would agree that writing automated tests is a good idea, but writing good, well-structured tests is still an elusive skill for many. For Java and Groovy developers, however, there’s good news. This practical guide shows you how to write concise and highly readable tests with Spock, the most innovative testing and specification framework for the JVM since JUnit. Author Rob Fletcher takes you from Spock basics to advanced topics, using fully worked integration examples. Through the course of this book, you’ll build a simple web application—Squawker—that allows users to post short messages. You’ll discover how much easier it is to write automated tests with Spock’s straightforward and expressive language. Start by learning how to write simple unit tests Understand the lifecycle of Spock specifications and feature methods Dive into interaction testing, using Spock’s intuitive syntax for dealing with mocks and stubs Learn about parameterized tests—writing feature methods that run for multiple sets of data Move into advanced topics, such as writing idiomatic Spock code and driving parameterized tests with file or database input Learn how everything works together in a standalone, fully-worked, test-driven development example
- Contents:
- Part 1. Spock 101. The "up and running" part
- Specification basics
- Spock assertions
- Managing resources
- Interaction testing
- Parameterized specifications
- Part 2. Advanced Spock. Idiomatic Spock
- Advanced where: blocks
- Asynchronous testing
- Extending Spock
- Test-driven development : the diamond kata
- Part 3. Integrating Spock. Spock and spring
- Testing REST APIs
- End-to-end web testing
- Testing JavaScript using Spock
- Test driving an RxJava application.
- Notes:
- Includes bibliographical references and index.
- Description based on online resource; title from PDF title page (ebrary, viewed May 29, 2017).
- ISBN:
- 9781491923245
- 1491923245
- 9781491923283
- 1491923288
- 9781491923269
- 1491923261
- OCLC:
- 987331060
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.