barecheck / code-coverage-action

GitHub Action that generates code coverage reports
https://barecheck.com
MIT License
60 stars 14 forks source link

Support for Cobertura and Jacoco Coverage report #275

Open vaishnav-canarys opened 3 months ago

vaishnav-canarys commented 3 months ago

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

vitaliimelnychuk commented 3 months ago

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.