my report config is following: <target name="coverage.report" depends="instrument"> <!-- if enabled, generate coverage report(s): --> <emma enabled="${emma.enabled}" > <report sourcepath="${src.main}" sort="+block,+name,+method,+class" metrics="method:70,block:80,line:80,class:100" > <fileset dir="${coverage.dir}" > <include name="*.emma" /> </fileset> <txt outfile="${coverage.dir}/coverage.txt" depth="package" columns="class,method,block,line,name" /> <xml outfile="${coverage.dir}/coverage.xml" depth="package" /> <html outfile="${coverage.dir}/coverage.html" depth="method" columns="name,class,method,block,line" /> </report> </emma> <mkdir dir="${coverage.publish.dir}" /> <copy todir="${coverage.publish.dir}"> <fileset dir="${coverage.dir}"> <include name="**/*.html" /> </fileset> </copy> </target>
and i got the txt report here: COVERAGE BREAKDOWN BY PACKAGE:
[class, %] [method, %] [block, %] [name] 0% (0/1)! 0% (0/7)! 0% (0/164)! com.talent.fw.helpers 0% (0/4)! 0% (0/13)! 0% (0/302)! com.talent.fw.integration 0% (0/6)! 0% (0/32)! 0% (0/349)! com.talent.fw.ldap.core 0% (0/4)! 0% (0/24)! 0% (0/198)! com.talent.fw.ldap.support 0% (0/2)! 0% (0/10)! 0% (0/230)! com.talent.fw.message.jms 0% (0/6)! 0% (0/75)! 0% (0/263)! testdomain 30% (3/10)! 5% (3/58)! 2% (14/667)! com.talent.fw.security.impl 42% (5/12)! 10% (8/84)! 4% (52/1206)! com.talent.fw.entityengine 38% (3/8)! 26% (7/27)! 9% (61/668)! com.talent.fw.message.test 60% (3/5)! 45% (18/40)! 38% (330/880)! com.talent.fw.message.adapter
and i can not find line coverage column and source code in html report, and class name column does'nt include .java as usual before. So strange!
I got it! I forgot turn on javac debug before.
Log in to post a comment.
my report config is following:
<target name="coverage.report" depends="instrument">
<!-- if enabled, generate coverage report(s): -->
<emma enabled="${emma.enabled}" >
<report sourcepath="${src.main}"
sort="+block,+name,+method,+class"
metrics="method:70,block:80,line:80,class:100"
>
<fileset dir="${coverage.dir}" >
<include name="*.emma" />
</fileset>
<txt outfile="${coverage.dir}/coverage.txt" depth="package"
columns="class,method,block,line,name"
/>
<xml outfile="${coverage.dir}/coverage.xml" depth="package" />
<html outfile="${coverage.dir}/coverage.html" depth="method"
columns="name,class,method,block,line"
/>
</report>
</emma>
<mkdir dir="${coverage.publish.dir}" />
<copy todir="${coverage.publish.dir}">
<fileset dir="${coverage.dir}">
<include name="**/*.html" />
</fileset>
</copy>
</target>
and i got the txt report here:
COVERAGE BREAKDOWN BY PACKAGE:
[class, %] [method, %] [block, %] [name]
0% (0/1)! 0% (0/7)! 0% (0/164)! com.talent.fw.helpers
0% (0/4)! 0% (0/13)! 0% (0/302)! com.talent.fw.integration
0% (0/6)! 0% (0/32)! 0% (0/349)! com.talent.fw.ldap.core
0% (0/4)! 0% (0/24)! 0% (0/198)! com.talent.fw.ldap.support
0% (0/2)! 0% (0/10)! 0% (0/230)! com.talent.fw.message.jms
0% (0/6)! 0% (0/75)! 0% (0/263)! testdomain
30% (3/10)! 5% (3/58)! 2% (14/667)! com.talent.fw.security.impl
42% (5/12)! 10% (8/84)! 4% (52/1206)! com.talent.fw.entityengine
38% (3/8)! 26% (7/27)! 9% (61/668)! com.talent.fw.message.test
60% (3/5)! 45% (18/40)! 38% (330/880)! com.talent.fw.message.adapter
and i can not find line coverage column and source code in html report, and class name column does'nt include .java as usual before. So strange!
I got it! I forgot turn on javac debug before.