Skip to content

Instantly share code, notes, and snippets.

@textarcana
Created December 22, 2009 01:47
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save textarcana/261424 to your computer and use it in GitHub Desktop.
Save textarcana/261424 to your computer and use it in GitHub Desktop.
Cucumber cheatsheet

Cucumber cheatsheet

Best cheatsheet is: cucumber --help

Output formats

Reporting

Notification formats, in increasing order of verbosity:

cucumber --format progress
cucumber --format stepdefs
cucumber --format usage --dry-run
cucumber --format html
cucumber --format pdf

Debugging

In order of usefulness.

cucumber --format tag_cloud
cucumber --format usage
cucumber --format debug

Note that the output from usage is sorted in a more commonly helpful manner, when when combined with --dry-run

Dependencies

Most deps are installed automatically. But some must be manually installed:

 gem install prawn
  1. Prawn is needed for PDF output.

Links

  1. Cucumber/Webrat cheatsheet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment