RoutineOp / delphi-code-coverage

Automatically exported from code.google.com/p/delphi-code-coverage
0 stars 1 forks source link

Coverage XML report not quite EMMA compliant for CruiseControl.NET #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generage coverage report
2. Load into CruiseControl.NET
3. View Emma report

What is the expected output? What do you see instead?

I would expect a coverage report to be generated. Nothing is generated/

What version of the product are you using? On what operating system?

Version 0.4

Please provide any additional information below.

The coverage XML report needs to have the summary of the entire project in the 
<all name="all classes"> part, otherwise the emma.xsl report doesn't detect it.

Example output is as follows:

<report>
<stats>
<packages value="8"/>
<classes value="185"/>
<methods value="2061"/>
<srcfiles value="62"/>
<srclines value="13135"/>
</stats>
<data>
<all name="all classes">
<!-- not having this means the report isn't generated -->
<coverage type="class, %" value="100% (185/185)"/>
<coverage type="method, %" value="65%  (1345/2061)"/>
<coverage type="block, %" value="60%  (44997/74846)"/>
<coverage type="line, %" value="64%  (8346.3/13135)"/>
<!-- not having this means the report isn't generated -->
<package name="com.sun.tools.javac.v8.resources">

Original issue reported on code.google.com by inpwtepy...@gmail.com on 1 Sep 2010 at 3:54

GoogleCodeExporter commented 9 years ago
Since V0.5, xml report now have the 'all classes' filled, at least for line 
statistics:

<coverage type="line, %" value="64%  (8346.3/13135)"/>

So this issue is maybe fixed, as EMMA report is working now.

Original comment by trident.job on 17 Dec 2010 at 10:42

GoogleCodeExporter commented 9 years ago
Is there still an issue with the XML report?

Original comment by ring....@gmail.com on 20 Oct 2011 at 12:37

GoogleCodeExporter commented 9 years ago
No, I'm using it on multiple project with emma.xsl under cc.net, it works 
perfectly.
Summary unit test page is ok.
Detailed unit test is ok.

Have a look here for a live project:
http://trident.job.hd.free.fr/cc_net/server/TridenT/project/DelphiCodeToDoc/buil
d/log20111020050242Lbuild.538.xml/DUnitCoverageBuildReport.aspx

Original comment by trident.job on 20 Oct 2011 at 7:00

GoogleCodeExporter commented 9 years ago

Original comment by ring....@gmail.com on 21 Oct 2011 at 8:42