Re: open-source code coverage tool

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: open-source code coverage tool

by Miguel Paraz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

reviving an old thread...

On Wed, Dec 14, 2005 at 10:58 AM, Paolo Enrico Melendres
<pamelendres@...> wrote:
> good day!
>
> what code coverage tool do you guys use?

I've been using Cobertura from the command line. Now, I want to try it
using its Maven tasks.

For standalone programs, no problem.

Now, I want to instrument a Maven war project. When Maven builds the
war, it looks in ./target/classes. However, the cobertura:instrument
goal copies the classes to ./target/generated-classes/cobertura.

How can I make the Maven war:war goal take the instrumented classes
from the corrected place?

Thanks!

Re: open-source code coverage tool

by maria odea ching-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Migs,

Hi Migs,

I don't think you can do it the other way around (or rather, in a straight-forward way). The war plugin has a parameter for the classes dir but it cannot be overridden. Your best bet is probably to use <warSourceIncludes> and <warSourceExcludes> instead..

HTH,
Deng




________________________________
From: Miguel Paraz <mparaz@...>
To: pinoyjug@...
Sent: Sun, September 20, 2009 3:49:47 PM
Subject: Re: [pinoyjug] open-source code coverage tool

 
reviving an old thread...

On Wed, Dec 14, 2005 at 10:58 AM, Paolo Enrico Melendres
<pamelendres@ yahoo.com> wrote:
> good day!
>
> what code coverage tool do you guys use?

I've been using Cobertura from the command line. Now, I want to try it
using its Maven tasks.

For standalone programs, no problem.

Now, I want to instrument a Maven war project. When Maven builds the
war, it looks in ./target/classes. However, the cobertura:instrumen t
goal copies the classes to ./target/generated- classes/cobertur a.

How can I make the Maven war:war goal take the instrumented classes
from the corrected place?

Thanks!