O'Reilly logo

The Cucumber for Java Book by Seb Rose, Matt Wynne, Aslak Hellesoy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What We Just Learned

Working with legacy code is always a challenge, but you can use Cucumber scenarios to help make it a much more enjoyable challenge. Be pragmatic! Don’t exhaust yourself trying to retrofit a complete set of Cucumber features for everything the system already does. Instead, add them gradually, one at a time, as you need them.

You’ll use characterization tests to help understand what the system is already doing and to give you some security before you make a change. Similarly, every time you discover a bug, you’ll trap it with a new Cucumber scenario. And, every time you add new behavior to the system, start by describing it with a Cucumber feature.

Code coverage can give you and your team feedback and encouragement about ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required