Java Testing with Spock you own this product

Konstantinos Kapelonis
Foreword by Luke Daley
  • March 2016
  • ISBN 9781617292538
  • 304 pages
  • printed in black & white

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


Look inside

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.

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.

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.

about the author

Konstantinos Kapelonis is a software engineer who works with Java daily.

Goes beyond mere exploration of Spock's API and feature set to include general testing practices and real-world application.

From the Foreword by Luke Daley, Spock founding contributor

An awesome guide to one of the most useful test frameworks for Java.

Christopher W. H. Davis, Nike

Discover the power of Spock and Groovy, step-by-step.

David Pardo, Amaron

Does an excellent job of exploring features of Spock that are seldom, if ever, mentioned in other online resources. If you care about producing quality tests, then this book is for you!

Annyce Davis, <i>The Washington Post</i>

choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • Java Testing with Spock ebook for free