Hi guys , I am new to java and this plugin :) I am having the complete build/compiled java code with me for swtbot tests. Now i want to see what all code/features has been covered from these tests. So tried to use the ant tasks of jacoco mentioned at
http://www.eclemma.org/jacoco/trunk/doc/ant.html and referenced http://www.eclemma.org/jacoco/trunk/doc/examples/build/build.xml too. when i am giving the report target as <target name="report" depends="suite"> <!-- Step 3: Create coverage report --> <jacoco:report> <!-- This task needs the collected execution data and ... --> <executiondata> <file file="${result.exec.file}" /> </executiondata> <!-- the class files and optional source files ... --> <structure name="JaCoCo report"> <classfiles> <fileset dir="${result.classes.dir}" /> </classfiles> </structure> <!-- to produce reports in different formats. --> <html destdir="${result.report.dir}" /> <csv destfile="${result.report.dir}/report.csv" /> <xml destfile="${result.report.dir}/report.xml" /> </jacoco:report> </target> and coverage as <jacoco:coverage destfile="${result.exec.file}"> <java fork="true" dir="." timeout="${timeout}" jvm="${jvm}" logError="true" classname="org.eclipse.core.launcher.Main" output="${junit-report-output}/${classname}.txt"> <classpath> <fileset dir="${eclipse-home}/plugins"> <include name="org.eclipse.equinox.launcher_*.jar" /> </fileset> </classpath> <arg line="${launcher-arg-line}" /> <jvmarg line="${jvm-arg-line}" /> <sysproperty key="PLUGIN_PATH" value="${plugin-path}" /> </java> </jacoco:coverage> where ${result.classes.dir} (i.e. ${eclipse-home}/plugins) points to my already compiled code directory containing many .class and .jar under different folders. .exec and index.html and .session.html files are getting generated but result is not correct and command prompt it shows BUILD FAILED : Error while creating report. . It is not listing all the classes and .sessions.html lists many classes but with no links to direct to that class and see the executed methods . And when i run the EclEmma eclipse plugin from eclipse and run and see the result there then that it is working absolutely fine. So i am just wandering what is missing in case of ant tasks ? -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
