What We Just Learned

Cucumber has a rich set of options that give us full control over how it behaves. We now know how to choose which features and/or scenarios to run, based on tags, names, and line numbers. Using the special rerun plugin, we can even choose to only run scenarios that failed the last time the features were executed. A wealth of other plugins ship with Cucumber, and we’ve learned how to control their output as well as how to use several of them at the same time.

We’ve looked at some of the other options that control Cucumber, especially the glue option (which gives us the freedom to structure our solution in the way that we want) and the snippets option (which gives us control of the formatting of our snippet names).

We’ve ...

Get The Cucumber for Java Book now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.