How to generate coverage report with JMockit and Maven? -


i'm trying generate coverage report jmockit , maven surefire plug-in. nothing happens.

here relevant parts of pom.xml:

<plugin>     <artifactid>maven-surefire-plugin</artifactid>     <version>2.15</version>     <configuration>         <argline>             -djmockit-coverage-outputdir=target/coverage-report         </argline>     </configuration> </plugin> 

the jmockit dependency:

<dependency>   <groupid>com.googlecode.jmockit</groupid>   <artifactid>jmockit-coverage</artifactid>   <version>0.999.22</version>   <scope>runtime</scope> </dependency> 

this pretty same example jmockit docs.

it should generate report mavens "test" goal, not. i've tried "surefire:test" too, nothing happens.

i'm using java 7 , maven 3.0.

how can generate jmockit coverage report maven?

you need add "jmockit" dependency, version 1.3 or newer (and before "junit" if that's case).

the jmockit coverage documentation indeed missing detail; should fixed soon.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -