cucumber-profiler

Currently tested against cucumber-1.2.1. Is known not to be compatible with some older versions.

A way to profile the performance of your cucumber features.

The profiler groups your cucumber tests by feature. Within a feature, the profiler times each scenario and calculates the mean and standard deviation. Each scenario that is two or more standard deviations above the mean is listed.

Installation

1. Put the profiler in your Gemfile

gem cucumber-profiler

2. Use the format flag to use the formatter

cucumber --format Cucumber::Formatter::Profiler features

Alternatively, you can make the profiler your default format by putting the following your cucumber.yml file:

--format Cucumber::Formatter::Profiler

If you use Timecop: If you use the timecop gem to freeze or change time be sure to also return the time after each of your tests. Not doing so will make it appear as if your tests are taking either far too long or have taken negative time to complete.

Copyright

Copyright © 2012 Michael Blumberg.