Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.

  • Apple
  • Android
  • Windows Phone
  • Android

To get the free app, enter your email address or mobile phone number.

Java Testing with Spock 1st Edition

4.6 out of 5 stars 8 customer reviews
ISBN-13: 978-1617292538
ISBN-10: 1617292532
Why is ISBN important?
This bar-code number lets you verify that you're getting exactly the right version or edition of a book. The 13-digit and 10-digit formats both work.
Scan an ISBN with your phone
Use the Amazon App to scan ISBNs and compare prices.
Have one to sell? Sell on Amazon
Buy used On clicking this link, a new layer will be open
$26.02 On clicking this link, a new layer will be open
Buy new On clicking this link, a new layer will be open
$43.52 On clicking this link, a new layer will be open
More Buying Choices
30 New from $27.32 11 Used from $26.02
Free Two-Day Shipping for College Students with Amazon Student Free%20Two-Day%20Shipping%20for%20College%20Students%20with%20Amazon%20Student

$43.52 FREE Shipping. Only 17 left in stock (more on the way). Ships from and sold by Amazon.com. Gift-wrap available.
click to open popover

Editorial Reviews

About the Author

Konstantinos Kapelonis is a software engineer with 10+ years of programming experience ranging from writing bare metal C for the PlayStation 3 to Scheme code that mimics human reasoning. He works daily with Java and has a soft spot for code quality and build pipelines.


Product Details

  • Paperback: 304 pages
  • Publisher: Manning Publications; 1 edition (March 27, 2016)
  • Language: English
  • ISBN-10: 1617292532
  • ISBN-13: 978-1617292538
  • Product Dimensions: 9.2 x 7.3 x 0.6 inches
  • Shipping Weight: 1.2 pounds (View shipping rates and policies)
  • Average Customer Review: 4.6 out of 5 stars  See all reviews (8 customer reviews)
  • Amazon Best Sellers Rank: #407,446 in Books (See Top 100 in Books)

Customer Reviews

5 star
4 star
3 star
2 star
1 star
See all 8 customer reviews
Share your thoughts with other customers

Top Customer Reviews

By Philip R. Heath VINE VOICE on March 24, 2016
Spock is a significant testing framework because it is the first one on the Java platform that bridges the gap between development and QA. In a typical shop, you will see developers using JUnit or TestNG while the QA Team uses anything from HP's QTP (please, no!) or Java tools such as JBehave or Cucumber JVM. Now, with one noted exception, these are not awful tools. However, the use of disparate tools across team boundaries makes collaboration difficult, and development and QA have limited to no opportunity to share what should be common resources. Spock brings additional structure (think BDD similar to JBehave) to unit tests while still being powerful enough for higher level tests. As a JVM framework, Spock can use tools like Selenium for those limited instances where you test through the front end of your web app.

Here's the great thing about Konstantinos Kapelonis' book Java Testing with Spock. He gives you a concise roadmap to start from ground zero and work your way up to enterprise level tests. Spock is actually a framework that is targeted for tests written in Groovy (if you want to learn more about the full power of this language, I highly recommend Groovy in Action, 2nd Edition). However, what if the term groovy only conjures up images of bad 70's clothes and disco music for you? Kapelonis gives you a crash course in the language that assumes you know Java. It's good enough for testing purposes, but you might also want to check out Making Java Groovy by Ken Kousen (that's three must of books when you include this one).

I've been reading this book as a part of Manning's MEAP program for about a year now, and my print book just showed up on Tuesday. This is the first book to be published on the Spock framework, but it is a very strong offering.
Read more ›
1 Comment 2 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
Spock seem to be very interesting framework not only for unit testing, but also for component and integration tests. Spock is easily integrated to existing project, which is one of the big advantages of this framework. Java developers will find very useful this framework, due to Groovy languange, a JVM language, that enables developers to write effective tests, with one framework clearly and easier. The book is well written and clearly presents the features and capabilities of Spock, while it also covers aspects regarding the different testing approaches ( unit, component, integration test). The author provides real world examples that help developers to deeply understand the usage of Spock and to apply it very fast to existing projects or to use it for new projects. Chapter 2 provides a very good crash course in Groovy, with regards to Spock functionality and it is critical, for someone to understand the rest of the book without deep knownledge of Groovy. Chapter 5 to 8 provide all needed information for an experience java developer to understand the capabilities of the Spock and immediately use it in his project, by presenting with concept such as parameterized tests, mocking / stubbing, and integration and functional tests, with with written and accurate examples. In my personal opinion, Spock is a framework that must be considered to be included in current or new projects, and this book can be used as the best enabler to this frameworks. In my personal opinion, this book must exist to every team's library, development or testing.
Comment One person found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
According to this book’s author, Spock (written in Groovy) is “a comprehensive testing framework for Java (and Groovy) code that can help you automate the boring, repetitive, and manual process of testing a software application. Spock is comprehensive because it’s a union of existing testing libraries”—specifically JUnit, Mockito and JBehave. It also is influenced by several others.

What is Spock’s main advantage in test scenarios? “When things go wrong,” the author notes, “Spock gives as much detail as possible on the inner workings of the code at the time of the failure.”

Just mentioning Groovy may give heartburn to some hardcore Java developers who don’t want to learn it. But others find Groovy refreshingly efficient and the Gradle build tool easy to use. In any case, using Groovy (and Gradle) with this book is “optional,” the author emphasizes. As noted in Appendix A, “It’s perfectly possible to use Spock in your Java project without installing Groovy itself.” He shows how to use Spock with the Maven build tool first, before he explains how to use Spock with the Gradle build tool.

The book is divided into three major parts: (1) Foundations and brief tour of Spock; (2) Structuring Spock tests; and (3) Spock in the Enterprise. Two appendices deal with installing and using Spock, plus getting your IDE set up, and using the book’s example files.

This book is a comprehensive guide to learning how to do Java (and Groovy) testing with Spock and is generally well written and adequately illustrated. I chose the Groovy/Gradle approach, using the Eclipse IDE. I did run into some awkward moments trying to get Eclipse Mars.2 to play correctly. The Groovy-Gradle plug-in on the Eclipse Marketplace was for earlier versions of Eclipse, and so was the Spock plug-in.
Read more ›
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse

Most Recent Customer Reviews

Set up an Amazon Giveaway

Java Testing with Spock
Amazon Giveaway allows you to run promotional giveaways in order to create buzz, reward your audience, and attract new followers and customers. Learn more
This item: Java Testing with Spock