Hi ,
I am doing code coverage using JaCoCo with Ant Tasks.
I am able to get the jacoco.exec and the reports.
But the reports are showing 0% code coverage and there is an error as well .
The error is "Could not find or load main class *"

The test part of build.xml is as follows :

     <target name="test">
<!-- Step 2: Wrap test execution with the JaCoCo coverage task -->
<jacoco:coverage destfile="${result.exec.file}">
<java classname="*" fork="true">
<pathelement location="${result.classes.dir}"/>
<!-- Step 2: Wrap test execution with the JaCoCo coverage task -->
<junit fork="true" forkmode="once">
<test name="CodeTest" filtertrace="true"/>
<classpath path="${result.classes.dir}"/>

I have to do coverage for more than one file which is located under 
The code is written using JavaScript.

Thanks ,
Ashley Simon

You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to