A Cucumber formatter that produces API documentation from Cucumber features that have follow a set of rules.
Add this line to your application's Gemfile:
gem 'cuke-api-docs'Either specify it when you use Cucumber:
cucumber --format Cucumber::Formatter::ApiDocsOr, add it to your Rakefile:
Cucumber::Rake::Task.new(:docs) do |t|
t.cucumber_opts = "features --format Cucumber::Formatter::ApiDocs"
endSo that you can do:
rake docsEither way, it produces a file named docs.html, which is a self-contained HTML documentation file.
- 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