Note that there are some explanatory texts on larger screens.

plurals
  1. POEmma doesn't embed source code to html report
    primarykey
    data
    text
    <p>I have a problem with Ant and Emma a code coverage plugin, it makes report, but without source code.</p> <p>I got following code in my build.xml</p> <p>init emma</p> <pre><code> &lt;taskdef resource="emma_ant.properties" /&gt; &lt;path id="run.classpath"&gt; &lt;pathelement location="${instr}" /&gt; &lt;path refid="build.classpath"/&gt; &lt;pathelement path="${ant.home}/lib/junit-4.5.jar"/&gt; &lt;pathelement path="${ant.home}/lib/emma.jar"/&gt; &lt;/path&gt; </code></pre> <p>making instr</p> <pre><code> &lt;target name="instr" depends="compile"&gt; &lt;emma&gt; &lt;instr instrpathref="build.classpath" destdir="${instr}" metadatafile="${coverage}/metadata.emma" merge="true" /&gt; &lt;/emma&gt; &lt;/target&gt; </code></pre> <p>setting properties</p> <pre><code> &lt;jvmarg value="-Demma.coverage.out.file=${coverage}/coverage.emma" /&gt; &lt;jvmarg value="-Demma.coverage.out.merge=true" /&gt; </code></pre> <p>making report </p> <pre><code> &lt;emma&gt; &lt;report sourcepath="${src}" &gt; &lt;fileset dir="${coverage}" &gt; &lt;include name="*.emma" /&gt; &lt;/fileset&gt; &lt;html outfile="${coverage}/coverage.html"/&gt; &lt;/report&gt; &lt;/emma&gt; </code></pre> <p>This works nice. It outputs to console:</p> <pre><code> [report] processing input files ... [report] 2 file(s) read and merged in 10 ms [report] not all instrumented classes were compiled with source file [report] debug data: no sources will be embedded in the report. [report] line coverage requested in a report of type [html] but [report] not all instrumented classes were compiled with line number [report] debug data: this column will be removed from the report. [report] showing up to 3 classes without full debug info per package: [report] ... [report] writing [html] report to [C:\...] ... </code></pre> <p>I want see my source code in report, how can I fix it? I studied documentation of emma and unfortunately there isn't anything related to this problem. </p> <p>Thank you for answers.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload