12

I'm looking for a way to measure the execution time of my cucumber steps. Using the junit format I managed to get some data about the execution time of the features and scenarios, but I would like to see the times of the steps inside the scenarios as well.

2 Answers 2

16
cucumber --format usage

"Prints where step definitions are used. The slowest step definitions (with duration) are listed first."

0
"-Dcucumber.options= -p usage"

This sorts the Step Definitions by their average execution time.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.