Java Testing with Spock (+Code)

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Manning Publications, 2016. — 304 p. (PFD) + Code. — ISBN: 978-1-61729-253-8.
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.
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.
What's inside:
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.

Author(s): Kapelonis Konstantinos.

Language: English
Commentary: 1910484
Tags: Библиотека;Компьютерная литература;Java