Hi,

I don't think "*" is a valid class name to launch a Java program.

I recommend to make your build running without JaCoCo first.

Also I wonder what you mean with "JavaScript". JaCoCo is a coverage tool for compiled languages (like Java) for the JVM. I don't think JaCoCo works with JavasScript.

Regards,
-marc

On 19.09.16 07:56, Ashley Simon wrote:
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 <mailto: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 <https://groups.google.com/d/msgid/jacoco/a7338110-793f-4ea2-a663-e4ae0436490d%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.


--
Marc Hoffmann
hoffm...@mountainminds.com
_______________________________________________
Mountainminds GmbH & Co. KG

Nussbaumstr. 4 * 80336 Muenchen * Germany
Phone/Fax +49-700-68664637 * 0700-MTNMINDS

Registergericht Muenchen * HRA 80201
Mountainminds Verwaltungs GmbH
Registergericht Muenchen * HRB 143183
Geschaeftsfuehrer Marc Hoffmann

--
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/fbd8641c-e4d3-40f2-0138-189478ba406b%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to