http://jira.codehaus.org/browse/MCOBERTURA-52
-- Jim
On 11/9/06, Jim Wilson <[EMAIL PROTECTED]> wrote:
Thanks Toli,
I tried exactly what you put (except for different root packages) - same result. I'm ready to give up on Cobertura. It makes nice reports, but I can't get it to ignore the test cases, so I don't know what else to do.
For reference, I'm running Windows - not sure if that has something to do with it.
-- JimOn 11/9/06, Toli Kuznets < [EMAIL PROTECTED]> wrote: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
