Java Testing with Spock teaches you how to use Spock for a wide range of testing use cases in Java. Readers new to Groovy will appreciate the succinct language tutorial that'll give you just enough Groovy to use Spock effectively.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
About the Technology
Spock combines the features of tools like JUnit, Mockito, and JBehave into a single powerful Java testing library. With Spock, you use Groovy to write more readable and concise tests. Spock enables seamless integration testing, and with the intuitive Geb library, you can even handle functional testing of web applications.
About the Book
Java Testing with Spock teaches you how to use Spock for a wide range of testing use cases in Java. You'll start with a quick overview of Spock and work through writing unit tests using the Groovy language. You'll discover best practices for test design as you learn to write mocks, implement integration tests, use Spock's built-in BDD testing tools, and do functional web testing using Geb. Readers new to Groovy will appreciate the succinct language tutorial in chapter 2 that gives you just enough Groovy to use Spock effectively.
Testing with Spock from the ground up
Write mocks without an external library
BDD tests your business analyst can read
Just enough Groovy to use Spock
About the Reader
Written for Java developers. Knowledge of Groovy and JUnit is helpful but not required.
About the Author
Konstantinos Kapelonis is a software engineer who works with Java daily.
Get a FREE ebook by joining our mailing list today!
Get our latest book recommendations, author news, competitions, offers, and other information right to your inbox.
By clicking 'Sign me up' I confirm that I'd like to receive updates, special offers, including partner offers, and other information from Simon & Schuster Inc. and the Simon & Schuster family of companies. I understand I can change my preference through my account settings or unsubscribe directly from any marketing communications at any time. We will send you an email with instructions on how to redeem your free ebook, and associated terms.
Thank you for signing up, fellow book lover!
Tell us what you like and we'll recommend books you'll love.