buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rhett Sutphin <rh...@detailedbalance.net>
Subject Re: require cobertura.rb
Date Mon, 12 Jul 2010 15:13:02 GMT
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


Mime
View raw message