Bachmann1234 / diff_cover

Automatically find diff lines that need test coverage.
Apache License 2.0
710 stars 191 forks source link

XML coverage report #269

Open Johney9 opened 2 years ago

Johney9 commented 2 years ago

Hello, great tool! Was a challange to get it working, but after finally wrestling with it for a while, I got a report. Trouble is, as far as I can tell it can only output to console or generate an HTML report.

Is there a way to generate an XML report? Essentially just make a report on the diff. If not, how would I go about implementing this feature and making a PR?

Bachmann1234 commented 2 years ago

So check out the --json-report option.

If you wanted to make an xml version the code would be fairly similar.

To be merged it would need tests and support both diff cover and diff quality.

But if json handles your usecase that's cool as well