coverage.ec File Format

324 Views Asked by At

When using Emma to produce code coverage reports, it generates coverage.ec file, which is to be given to emma.jar again to produce a report. However I need a custom report and I do not want to use Emma report as a proxy, i.e I want to read the coverage.ec file directly. But I do not know the format of this file and my search has not been successful so far. So here's the question:

What is the format of coverage.ec file generated by Emma.

1

There are 1 best solutions below

2
Simulant On

I think the coverage.ec uses an internal Emma specific file format. It feels wrong that you directly want to use it. Instead you should generate e.g. the XML report, which should contain all the required data you need in a readable and easy to parse format.

check https://stackoverflow.com/a/33724337/1515052 to generate the XML report.