So I took the build part away so that the report will call the emma:emma
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>emma-maven-plugin</artifactId>
<version>1.0-alpha-3</version>
<inherited>true</inherited>
<configuration>
<verbose>true</verbose>
</configuration>
</plugin>
</plugins>
</reporting>
When running, the following appears:
[WARNING] Error loading report
org.codehaus.mojo.surefire.SurefireReportMojo - AbstractMethodError:
canGenerateReport()
[INFO] Generating "EMMA Test Coverage" report.
[EMMA v2.1, build 5320 (stable) (2005/06/20 22:08:27)]
input data path:
{
/home/miguel.silva.local/svn/pulse/04_Software/wendy/target/coverage.em
}
source path:
{
/home/miguel.silva.local/svn/pulse/04_Software/wendy/src/main/java
}
processing input file
[/home/miguel.silva.local/svn/pulse/04_Software/wendy/target/coverage.em]
...
loaded 5 metadata entries
1 file(s) read and merged in 1 ms
nothing to do: no runtime coverage data found in any of the data files
Basically, the [coverage.em] appears, but the coverage.ec is nowhere
to be seen. I'm although sure this is a classpath issue. The emma
site's FAQ [ http://emma.sourceforge.net/faq.html#q.coverage.noop ]
seams to point to it.
Anyone has any ideia ?
Thanks!
On 2 August 2011 19:24, mors <[email protected]> wrote:
> I'm trying to run emma on maven but somehow I cannot produce the reporsts.
>
> My pom.xml is:
>
> <project>
> <build>
> <plugins>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>emma-maven-plugin</artifactId>
> <version>1.0-alpha-3</version>
> <inherited>true</inherited>
> <executions>
> <execution>
> <phase>process-classes</phase>
> <goals>
>
> <goal>instrument</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <inherited>true</inherited>
> <configuration>
> <forkMode>once</forkMode>
> <reportFormat>xml</reportFormat>
>
> <classesDirectory>${project.build.directory}/generated-classes/emma/classes</classesDirectory>
> </configuration>
> </plugin>
> </plugins>
> </build>
>
> <reporting>
> <plugins>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>emma-maven-plugin</artifactId>
> <version>1.0-alpha-3</version>
> <inherited>true</inherited>
> </plugin>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
>
> <artifactId>surefire-report-maven-plugin</artifactId>
> <inherited>true</inherited>
> </plugin>
> </plugins>
> </reporting>
> </project>
>
> just as is writen here http://mojo.codehaus.org/emma-maven-plugin/usage.html
>
>
> I do get the instrumentation message when running >> mvn clean install:
>
> [INFO] Instrumenting classes with EMMA
> processing instrumentation path ...
> instrumentation path processed in 35 ms
> [5 class(es) instrumented, 0 resource(s) copied]
> metadata merged into
> [/home/miguel.silva.local/svn/pulse/04_Software/wendy/target/coverage.em]
> {in 72 ms}
> [INFO] [resources:testResources {execution: default-testResources}]
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory
> /home/miguel.silva.local/svn/pulse/04_Software/wendy/src/test/resources
> [INFO] [compiler:testCompile {execution: default-testCompile}]
> [INFO] Compiling 1 source file to
> /home/miguel.silva.local/svn/pulse/04_Software/wendy/target/test-classes
> [INFO] [surefire:test {execution: default-test}]
> [INFO] Surefire report directory:
> /home/miguel.silva.local/svn/pulse/04_Software/wendy/target/surefire-reports
>
> But only the surefire report is generated. Am I missing something?
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/emma-report-not-appearing-tp4659835p4659835.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]