- Paperback: 338 pages
- Publisher: Pragmatic Bookshelf; 1 edition (February 16, 2015)
- Language: English
- ISBN-10: 1941222293
- ISBN-13: 978-1941222294
- Product Dimensions: 7.5 x 0.7 x 9.2 inches
- Shipping Weight: 1.3 pounds (View shipping rates and policies)
- Average Customer Review: 32 customer reviews
- Amazon Best Sellers Rank: #322,805 in Books (See Top 100 in Books)
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.
To get the free app, enter your mobile phone number.
The Cucumber for Java Book: Behaviour-Driven Development for Testers and Developers 1st Edition
Use the Amazon App to scan ISBNs and compare prices.
The Amazon Book Review
Author interviews, book reviews, editors picks, and more. Read it now
Frequently bought together
Customers who bought this item also bought
From the Publisher
The Cucumber for Java Book
What is Cucumber?
Cucumber lets software development teams describe how software should behave in plain text. The text is written in a business-readable domain-specific language and serves as documentation, automated tests, and collaborative development-aid—all rolled into one format.
Who is this book for?
The first part of this book is for the whole team—customer, product owner, business analyst, developer, tester, architect, Scrum master, and anyone else you can think of. The rest of the book focuses on more technical aspects of Cucumber for Java and is suitable mainly for developers and testers.
How will this book help us at work?
Seb, Matt, and Aslak have spent years consulting in a wide variety of organizations. In response, we developed Cucumber to help support the effective ways of working that we had learned. In this book you get the distillation of all that knowledge, along with in-depth advice that will help you be successful at Behaviour-Driven Development (BDD) using Cucumber.
Can’t I learn all this from the online documentation?
The online documentation gives you the bare bones of how Cucumber for Java works. This book has much more. From the invaluable BDD advice in part 1, through the extensive worked example in part 2, to the detailed technical insights in part 3, this book collects everything you need to know in one handy package.
Is the book useful even if my project isn’t written in Java?
Cucumber doesn’t care what language your project is written in. As long as there’s a way to interface with your project from Java, then Cucumber for Java can work for you. If your project is written in Java (or another JVM language), then your Cucumber scenarios can interact directly with the code, which can be very useful. The book also gives a brief introduction to writing your “glue” code in other JVM languages, such as Scala, Groovy, or Clojure.
Is this the same as The Cucumber Book?
'The Cucumber for Java Book' is based upon the best-selling original, 'The Cucumber Book'. All the examples have been completely rewritten to take advantage of the Java version of Cucumber. There are new chapters that cover Java specific topics, such as Cucumber’s integration with various dependency injection containers, and there’s a brand new chapter on how to keep your Cucumber scenarios running fast as your project grows.
About the Author
Seb Rose works as an independent consultant, helping teams adopt and refine their agile practice. He works with Kickstart Academy and is a core developer on the Cucumber-JVM project. Seb tweets as @sebrose and blogs at "claysnow":http://claysnow.co.uk
Matt Wynne is a leading BDD practitioner, a member of the Cucumber core team, and a programmer, coach, trainer, and popular international speaker. Alongside Aslak Hellesøy and Julien Biezemans, Matt is co-founder of Cucumber Ltd., the company behind Cucumber. Matt tweets from @mattwynne and @cucumberbdd.
Aslak Hellesoy is the creator of Cucumber. During his career Aslak has worked with both small and large organizations in industries such as telecom, trading, insurance, car manufacturing, education, and government. Aslak is co-founder of Cucumber Ltd, the company behind Cucumber. He tweets from @aslak_hellesoy and @cucumberbdd.
Top customer reviews
There was a problem filtering reviews right now. Please try again later.
I would like to thank the authors for this great product.
As you might expect, much of the material covering the syntax of the Gherkin language is the same for both Java and Ruby, but there was also a lot of new/revamped material not in the original book. I thought the chapter on keeping "Cucumbers sweet" (where the authors extol us to listen to the specs) was good, and the chapter on database testing (a particular bette noire of mine) was also good to see, though perhaps not as in depth as I would have liked. But the chapters on async calls and testing REST services showed how easy it is to put together workable specs for non-simplisitic systems; I started reading those chapters wondering how the authors would piece the thing together, and ended up thinking... "oh, that wasn't that hard, was it?"
Being a PragProg book, I sometimes found the step-by-step guide a little bit too slow; I found myself scouring instead for the various sidebars with their useful asides and insights; the boilerplate of "Now let's do this, now let's do that" was a little bit grating. But then again, that's the PragProg style, and I think it possibly only irritated on this occasion because I'd already read the Ruby book.
Overall, by reading this book you'll come away with a great understanding of the BDD mindset, and if it appeals then you'll have a great headstart in how to apply those techniques to your own Java projects.
The initial part of the book is a nice overview of the Cucumber specification language Gherkin, and explains how to set up the toolkit for working with Java. For people on the JVM platform, but not working directly with Java, the last part of the book complements this with some nice hello-world-style examples in popular alternative JVM languages. The second part of the book is pure gold for anyone starting out, because it presents common ways teams fail with Cucumber and how to avoid them. The authors go into detail about making tests faster, more robust and focusing on business needs to avoid bored stakeholders. After that, the book presents a relatively detailed worked example that introduces syntax sugar such as transformers, and a ton of interesting small tricks to apply in day-to-day work. This part has a solid coverage of good test automation patterns such as running inside transactions, achieving independence and synchronising async processes. The book also contains plenty of examples of test automation ideas for popular infrastructural components in the Java ecosystem, including Spring, Tomcat and MySQL. As a result, the contents of the book should help most Java programmers hook Cucumber on to their current platform quickly.
If you passed on Cucumber before because you develop a Java-based app, it's time to check it out, and this book includes everything you need to know to get traction. You will learn how to help your customers identify what they need, and how to successfully deliver that, with the side benefits of executable specifications, regression tests, fast feedback loops, and living documentation. If you've never had the joy of being able to show someone exactly how your production system behaves by plugging their inputs into a test and demonstrating the results, it's time to embrace living documentation.
Cucumber for Java will guide you through the whole team approach to building quality in with executable tests. It explains many tips to help you avoid pitfalls such as too much detail, tests that are too brittle, and tests that run too slowly. Get your team together, start reading and experimenting. Even if you end up going with a different framework, you'll learn valuable concepts that you'll use forever.
Most recent customer reviews
Java. The book doesn't assume any prior knowledge of BDD or Cucumber,
and would be suitable for...Read more