Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LCOV coverage reporting as a replacement for COVERALLS reporting #1172

Open
jgebal opened this issue Dec 10, 2021 · 2 comments
Open

Add LCOV coverage reporting as a replacement for COVERALLS reporting #1172

jgebal opened this issue Dec 10, 2021 · 2 comments

Comments

@jgebal
Copy link
Member

jgebal commented Dec 10, 2021

Existing COVERALLS reporting is no longer easy to publish to COVERALLS.
If users would be using GithubActions/AzurePipelines etc., the preferred format would be LCOV.

The preferred way to publish coverage reports to Coveralls is via Coveralls App and this one accepts LCOV format.

The problem was discovered while trying to switch from Travis to GithubActions.
In fact, even existing Travis integration was not trivial as it required additional scripting on CI side to make the output JSON report consumable by Coveralss by adding MD5 hash for each source file reported.

A discussion on Coveralls led me to conclusion that the best approach would be to implement a new LCOV coverage reporter.

@jgebal
Copy link
Member Author

jgebal commented Dec 10, 2021

Description of LCOV format can be found here
A good interpretation of it can be also found in this parser, particularly in this file

@lwasylow
Copy link
Member

Don't we already publish code coverage in sonar cloud? Just wonder if the lcov is a niche? I think most people using Jenkins or azure which consume cobertura. Just wonder how much uptake it will have and how many people actually using this format?

@jgebal jgebal removed the reporter label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants