Description
This is a feature request. Would it be possible to allow uploading Codacy native coverage report file directly instead of parsing it from lcov
or similar? (That would be JSON file with CoverageReportFile
or similar object.)
Real world use case
monocart-coverage-reports
is a new tool which generates coverage reports for JavaScript. It processes native V8 reports directly instead of converting them to Istanbul or so. They create coverage data object for each file, with lines
map of the following shape:
{
"1": 1,
"3": 1,
"10": 5,
"35": 1,
}
This means that lcov
is a redundant intermediate format and it would be trivial to provide native coverage report file for Codacy. Which means increase of performance and precision.
Example
Codecov supports uploading reports in their native format: https://docs.codecov.com/docs/codecov-custom-coverage-format. And here is how monocart
generates it: https://github.com/cenfun/monocart-coverage-reports/blob/5dbff72f1cc4e41d6d77f01e7ac54058ce92aa01/lib/generate.js#L263-L283
That’s straight forward solution. Much more simple than encoding and decoding lcov
.