buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Crain" <>
Subject RE: require cobertura.rb
Date Mon, 12 Jul 2010 16:42:31 GMT
Thanks Rhett. I'm happy with that solution! I just thought it was a funny thing not to have
for free somehow since everybody needs a build without coverage instrumentation. I thought
maybe I was being silly.


-----Original Message-----
From: Rhett Sutphin on behalf of Rhett Sutphin
Sent: Mon 7/12/2010 12:18 PM
Subject: Re: require cobertura.rb
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
> 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


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


> thanks!
> Adam

  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message