« Return to Thread: Code Coverage Plugins with Maven 2

RE: Code Coverage Plugins with Maven 2

by mraible :: Rate this Message:

Reply to Author | View in Thread

This is what I'm using. However, it reports 0% coverage. Maybe this is caused by another plugin?

Matt

Iker Almandoz wrote:
Matt,
Cobertura 2.0 works ok for me...

My pom.xml has:

  <build>
   <plugins>
    <plugin>
  <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <version>2.0</version>
        </plugin>
....

That sets the cobertura version to 2.0 as the latest did not seem to work...

  <reporting>
  <plugins>

           <plugin>
                   <groupId>org.codehaus.mojo</groupId>
                   <artifactId>cobertura-maven-plugin</artifactId>
           </plugin>


Regards,
Iker

-----Original Message-----
From: mraible [mailto:matt@raibledesigns.com]
Sent: Monday, September 24, 2007 9:57 AM
To: users@maven.apache.org
Subject: Code Coverage Plugins with Maven 2


AFAICT, the cobertura-maven-plugin (versions 2.0 and 2.1) doesn't work and
neither does the emma-maven-plugin in Mojo's sandbox. Has anyone had any
luck with either of these plugins? Is there an open source code-coverage
plugin that works with Maven 2? I know about Clover, but that's not open
source.

Using Emma and Cobertura with Ant seem to work great.

Thanks,

Matt
--
View this message in context:
http://www.nabble.com/Code-Coverage-Plugins-with-Maven-2-tf4510331s177.html#
a12863761
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org

 « Return to Thread: Code Coverage Plugins with Maven 2