Running Tests

chikamichi edited this page Jul 11, 2011 · 6 revisions

The lemon command-line tool is used to run tests. Simply provide the name of the test files as arguments:

$ lemon test/*.rb

By default the lemon command outputs the traditional dot-progress format. The --verbose or -v option provides additional information about each unit test and concern as they are executed.

Lemon provides a variety of test formats. Use the -f options to select between them.

$ lemon -f tap test/*.rb

Other choices include tap, outline, html and backtrace.