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

I have to do coverage for more than one file which is located under 
*${result.classes.dir} 
.*
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 
https://groups.google.com/d/msgid/jacoco/a7338110-793f-4ea2-a663-e4ae0436490d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to