You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Chris Adams <ch...@edatasource.com> on 2013/02/17 03:55:20 UTC
Builder + Clover Integration
Hi,
I was seeing if anybody had integrated Atlassian Clover into Apache Buildr
or would know how to go about integrating it?
Thanks.
- Chris
Re: Builder + Clover Integration
Posted by Peter Donald <pe...@realityforge.org>.
Hi,
On Sun, Feb 17, 2013 at 1:55 PM, Chris Adams <ch...@edatasource.com> wrote:
> I was seeing if anybody had integrated Atlassian Clover into Apache Buildr
> or would know how to go about integrating it?
I don't know of any existing tasks out there.
I haven't used clover in years so I can not remember the best ways to
interact with it. However I suspect the simplest way is to reuse the
ant tasks. We have emma tasks [1] and cobertura tasks [2] integrated
into core that would be a good starting point. Both of these
instrument the code before running the tests and then generate reports
afterwards. We also have a jacoco task [3] that takes an alternative
approach of attaching a javaagent to the test VM to collect
instrumentation. Depending on what strategy clover uses you may wat to
use one of these as a starting point.
HTH.
[1] https://github.com/apache/buildr/blob/trunk/lib/buildr/java/emma.rb
[2] https://github.com/apache/buildr/blob/trunk/lib/buildr/java/cobertura.rb
[3] https://github.com/apache/buildr/blob/trunk/addon/buildr/jacoco.rb
--
Cheers,
Peter Donald