On Thursday, 27 September 2012 11:39:44 UTC+5:30, Marc R. Hoffmann wrote:
> Hi,
>
>
>
> in the HTML coverage report there is a link "Sessions" at the top right
>
> corner. Can you please check whether your classes are listed on the
>
> sessions page?
>
>
>
> Best regards,
>
> -marc
>
>
>
> On 2012-09-27 04:57, we wrote:
>
> > Hi,
>
> >
>
> > 1.Start tomcat and attach jacoco agent like below
>
> > export
>
> >
>
> > JAVA_OPTS=-javaagent:/opt/jacocoagent.jar=includes=*,output=tcpserver,port=6300,address=*
>
> > /usr/local/apache-tomcat-6.0.28/bin/catalina.sh start
>
> >
>
> > 2.Run jmeter script to do some test, and some manual test
>
> >
>
> > 3.Run ant script to get dump
>
> > <project name="get cov by jacoco task" default="report" basedir="."
>
> > xmlns:jacoco="antlib:org.jacoco.ant">
>
> >
>
> > <property name="server.address" value="10.224.166.10"/>
>
> > <property name="server.port" value="6300"/>
>
> > <property name="jacocoexec.dir" value="./target/dump"/>
>
> > <property name="jacocoexec.filename" value="jacocodump.exec"/>
>
> > <property name="jacoco.dir" value="E:/mytools/jacoco_By_eclemma"/>
>
> > <property name="jacoco.report.dir" value="./target/dump/report"/>
>
> > <property name="classes.dir" value="./target/classes"/>
>
> > <property name="src.dir" value="./src/main/java"/>
>
> >
>
> > <taskdef uri="antlib:org.jacoco.ant"
>
> > resource="org/jacoco/ant/antlib.xml">
>
> > <classpath path="${jacoco.dir}/jacocoant.jar" />
>
> > </taskdef>
>
> >
>
> > <target name="clean">
>
> > <delete dir="${jacoco.report.dir}"/>
>
> > <delete dir="${jacocoexec.dir}"/>
>
> > <mkdir dir="${jacocoexec.dir}"/>
>
> > <mkdir dir="${jacoco.report.dir}"/>
>
> > </target>
>
> >
>
> > <target name="dump" depends="clean">
>
> > <jacoco:dump address="${server.address}" port="${server.port}"
>
> > reset="false" destfile="${jacocoexec.dir}/${jacocoexec.filename}"
>
> > append="true" dump="true" />
>
> > </target>
>
> >
>
> > <target name="report" depends="dump">
>
> > <jacoco:report>
>
> > <executiondata>
>
> > <file
> > file="${jacocoexec.dir}/${jacocoexec.filename}"/>
>
> > </executiondata>
>
> > <!-- the class files and optional source files ... -->
>
> > <structure name="JaCoCo Ant Test">
>
> > <classfiles>
>
> > <fileset dir="${classes.dir}"/>
>
> > </classfiles>
>
> > <sourcefiles encoding="UTF-8">
>
> > <fileset dir="${src.dir}"/>
>
> > </sourcefiles>
>
> > </structure>
>
> > <!-- to produce reports in different formats. -->
>
> > <html destdir="${jacoco.report.dir}"/>
>
> > <csv destfile="${jacoco.report.dir}/report.csv"/>
>
> > <xml destfile="${jacoco.report.dir}/report.xml"/>
>
> > </jacoco:report>
>
> > </target>
>
> >
>
> > </project>
>
> >
>
> > After these steps, I got a report, but the coverage data is zero.
>
> > What's wrong? Or I lose something?
>
> > Please help, thanks a lot.
>
> >
>
> > Best Regards,
>
> > we
Hi Marc,
This is Prabhu , I am new to this Jacoco ,im also facing the same
problem , but here I could see my class files in that session lists , Can you
pls help me where I may missed out for coverage !!
Thanks in Advance
--
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/groups/opt_out.