code-coverage-action icon indicating copy to clipboard operation
code-coverage-action copied to clipboard

Support for Cobertura and Jacoco Coverage report

Open vaishnavn02 opened this issue 1 year ago • 1 comments

Hi

We are currently having the majority of pipelines in Java, the current action is working for React JS pipelines which is able to generate a lcov. For using jacoco reports, is there any workaround we can use to generate the PR annotations

@vitaliimelnychuk

Regards

Vaishnav

vaishnavn02 avatar Jul 08 '24 04:07 vaishnavn02

Hello @vaishnav-canarys, thanks for opening the issue. I think extending the action to work with different types of files makes sense. I'll try to take a look during the weekend as I never used any of these reporters before. If you'd like to contribute to the project meantime, I think you, might want to take a look into https://github.com/barecheck/code-coverage-action/blob/v1/src/index.js#L37 this output, I think we might need to add check for file type and use another parser. Ideally, we would need to have the same structure independently of the file type.

Also, if you're looking to have something working today, I would explore ways to convert Cobertura and Jacoco into Lcov.

vitaliimelnychuk avatar Jul 08 '24 07:07 vitaliimelnychuk