Hi Peter,
CSV reports show total numbers on class level only. If you need a
machine readable format on method level please have a look at the JaCoCo
XML reports.
Regards,
-marc
On 2017-12-13 12:26, [email protected] wrote:
Hi,
we used the following fragment of ANT-script to generate JACOCO
reports.
<target name="report" depends="unittest">
<!-- Step 3: Create coverage report -->
<jacoco:report>
<!-- This task needs the collected execution data and ... -->
<executiondata>
<file file="${result.exec.file}" />
</executiondata>
<!-- the class files and optional source files ... -->
<structure name="JaCoCo Ant Example">
<classfiles>
<fileset dir="${result.classes.dir}" />
</classfiles>
<sourcefiles encoding="UTF-8">
<fileset dir="${src.dir}" />
</sourcefiles>
</structure>
<!-- to produce reports in different formats. -->
<html destdir="${result.report.dir}" />
<csv destfile="${result.report.dir}/report.csv" />
<xml destfile="${result.report.dir}/report.xml" />
</jacoco:report>
</target>
For each Class a HTML-file is generated with the following information:
Element Missed Instructions Cov. Missed
Branches Cov. Missed Cxty Missed Lines Missed Methods
For all classes a report is generated with the summary info of each
class.
Is it possible to generate a CSV-file for each class with the
information written in the HTML-files?
Or is it possible to generate the summary-info-report for each class
with detailed infos about the methods in the classes and not only the
summarized information.
Peter
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/662d67a5f26edca1b3d44bdf9e60f09c%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.