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

NOTE: Coverage analysis can be slow if there are a lot of files to cover.

The lemon command can also be used to check test coverage. For this use the coverage subcommand (or an abbreviation thereof, e.g. ‘cov’).

  > lemon coverage 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 coverage -n HelloWorld test/cases/*.rb

Clone this wiki locally