Cucumber Statistics
Tracks cucumber timing and displays results in a single html page with outliers highlighted in a table sortable by various metrics.
Installation
Add
gem 'cucumber_statistics'
to yourGemfile
Or
gem install 'cucumber_statistics
Configuration
For always-on automatic loading (recommended), add
require 'cucumber_statistics/autoload'
tofeatures/support/env.rb
or other support file.Or, add it to your
cucumber.yml
by adding--format CucumberStatistics::Formatter
i.e.std_opts = "-r features/support/ -r features/step_definitions --quiet --format CucumberStatistics::Formatter --format progress --format junit -o test-reports --strict --tags ~@wip --tags ~@todo"
Or, use it via command line with the
--format CucumberStatistics::Formatter
option.
Results
Look in the ./target/cucumber_statistics
for the generated html document.
Why?
It should be fast and easy to find long running steps. This generates a bootstrap styled page with a sortable table, where the outliers are clearly identified. It should be fast and easy to diagnose problems.
Contributing
Please contribute!
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Credits
Credit to Ryan Boucher cucumber_timing_presenter for the original code used to gather statistics.
Copyright
Copyright (c) 2014 AlienFast. See LICENSE.txt for further details.