Jim,
I haven't actually run the cobertura tasks in a few months (yes, me
bad), but the last time we used it we had this setup in the pom and
our exclusions seemed to work:
<build>
<!-- Cobertura - Code coverage -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<configuration>
<instrumentation>
<excludes>
<exclude>org/marketcetera/**/*Test.class</exclude>
<exclude>com/marketcetera/**/*Test.class</exclude>
<exclude>${basedir}</exclude>
</excludes>
</instrumentation>
<check>
<haltOnFailure>false</haltOnFailure>
</check>
</configuration>
<executions>
<execution>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</build>
hope this helps.
On 11/9/06, Jim Wilson <[EMAIL PROTECTED]> wrote:
Thanks Toli - I've tried Cobertrua, but I can't seem to get it to respect my
<excludes> and <ignores>. Shouldn't use of these tags eliminate the
matching classes from the report?
For example, if I had:
<ignores>
<ignore>*</ignore>
</ignore>
then Cobertura should produce an empty report, right?
-- Jim
On 11/9/06, Toli Kuznets <[EMAIL PROTECTED]> wrote:
>
> Jim,
>
> take a look at
http://mojo.codehaus.org/cobertura-maven-plugin/
>
> You can see the example of us configuring it in
>
http://trac.marketcetera.org/trac.fcgi/browser/platform/trunk/pom.xm
>
> hope this helps.
>
>
> On 11/9/06, Jim Wilson <[EMAIL PROTECTED]> wrote:
> > Dear Community,
> >
> > What M2 plugin do you recommend for code coverage reports? I'm trying
to
> > avoid paid plugins like Clover and jCoverage. Thanks in advance.
> >
> > -- Jim R. Wilson
> >
>
>
> --
> Toli Kuznets
> http://www.marketcetera.com: Open-Source Trading Platform
> download.run.trade.
>
>
---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email