$ gem install duvet
Then add this to the __very__ top of your `test/helper.rb` (or similar)
Because `duvet` won't work for Ruby 1.8 you may want to rescue the error and
# ignore error
You can change the defaults by passing options to `Duvet.start`, for example:
Duvet.start :dir => 'coverage', :filter => 'app/lib'
Where `:dir` is the directory to write the coverage to and `:filter` is a string
that a files path must match against. A regular expression can be used for more
control, but most of the time a simple string will suffice.
You can see the output of running `duvet` on itself [here][covg].
This gem was created because I read this [blog post][post] on the AT&T
engineering site by Aaron Patterson.
Copyright (c) 2010-11 Joshua Hawxwell. See LICENSE for details.