EMMA coverage tool does not display in turn

I use the EMMA tool to cover the code, but despite all my efforts, EMMA refuses to see the source .java files and generate coverage in turn.

We use ANT to create the code, and debug is true. I know EMMA measures coverage because .emma files seem to generate and merge correctly. Reports can provide interest using the high-level method with interest.

But why doesn't he see .java files? All I get is this: [source file 'a / b / c / d / e / f / code.java' not found in source path]

+5
source share
4 answers

Do you install sourcepathin your element report?

<report>
    <sourcepath>
        <pathelement path="${java.src.dir}" />
    </sourcepath>
    <fileset dir="data">
        <include name="*.emma" />
    </fileset>

    <txt outfile="coverage.txt" />
    <html outfile="coverage.html" />
</report>
+6

build.xml, EMMA? report sourcepath.

report sourcepath java.

. EMMA. , , .

, ANT:

  • build.xml -verbose
  • -debug .
+2

. , sourcepath , java.

+1

{java.src.dir} src.

src, . build.xml.

, , :

  <target name="emma.report" if="use.emma">
   <emma enabled="true">
     <report sourcepath="${test.reports.dir}">
       <!--  collect all EMMA data dumps (metadata and runtime):   --> 
       <infileset dir="${test.data.dir}" includes="*.emma" /> 
       <html outfile="${test.reports.dir}/coverage.html" /> 
     </report>
   </emma>
 </target>

EDIT: , src. , .

0
source

All Articles