cuke-api-docs
A Cucumber formatter that produces API documentation from Cucumber features that have follow a set of rules.
Installation
Add this line to your application's Gemfile:
gem 'cuke-api-docs'
Usage
Either specify it when you use Cucumber:
cucumber --format Cucumber::Formatter::ApiDocs
Or, add it to your Rakefile:
Cucumber::Rake::Task.new(:docs) do |t|
t.cucumber_opts = "features --format Cucumber::Formatter::ApiDocs"
end
So that you can do:
rake docs
Either way, it produces a file named docs.html, which is a self-contained HTML documentation file.
Contributing
- Fork it ( https://github.com/[my-github-username]/cuke-api-docs/fork )
- 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 a new Pull Request