Skip to content
trans edited this page Sep 13, 2010 · 8 revisions

The lemon command can also be used to check test coverage. For this use the --coverage or -c option.

  > lemon -c test/cases/*.rb

To enusre only the code you are interested in is checked, you can either use -r to pre-require support libraries you wish not to include in the output. Or more conveniently, supply specific namespaces to include via the --namespace or -n option.

  > lemon -c -n HelloWorld test/cases/*.rb