Hi Adam,

On Jul 12, 2010, at 9:14 AM, Adam Crain wrote:

> Hi,
> 
> Why does just requiring cobertura.rb automically instrument the classes for 
> all buildr tasks?
> 
> I would have imagined that this would happen only with the cobertura:html, 
> cobertura:xml and cobertura:check tasks.
> 
> If I don't want to instrument for normal builds, is my only recourse using 
> another custom command line option to programmatically require cobertura?

This is what I do for Emma, which is similar.

In the buildfile:

require 'emma' if ENV['EMMA'] =~ /^y/i

Then:

$ buildr test          # without
$ buildr test EMMA=yes # with

Rhett

> 
> thanks!
> Adam

Reply via email to