Changing Cucumber’s Output

It can be distracting to look at the whole content of the feature in Cucumber’s output each time we run it. Let’s switch to use the progress plugin to get a more focused output. Edit cucumber so that the line that runs Cucumber looks like this:

first_taste/06/cucumber
 
java -cp "jars/*:." cucumber.api.cli.Main -p progress --snippets camelcase \
 
-g step_definitions features

Now when you run ./cucumber you should see the following output:

 
.P-
 
 
1 Scenarios (1 pending)
 
3 Steps (1 skipped, 1 pending, 1 passed)
 
0m0.081s
 
 
cucumber.api.PendingException: TODO: implement me
 
at step_definitions.CheckoutSteps.iCheckout(CheckoutSteps.java:17)
 
at *.When I checkout 1 "banana"(checkout.feature:4)

Instead of printing ...

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.