ryanluker / vscode-coverage-gutters

Display test coverage generated by lcov and xml - works with many languages
https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters
MIT License
460 stars 88 forks source link

Look for cobertura.xml as a coverage source #184

Closed SimonKagstrom closed 5 years ago

SimonKagstrom commented 5 years ago

I work on a code coveage collector called kcov which collects coverage for compiled languages, Python and Bash. kcov outputs data in (among other) the cobertura XML format, which you already support.

kcov almost works out of the box with the coverage gutters. I only have to do a symlink between cobertura.xml to cov.xml and it will automatically set things up.

If it would look for cobertura.xml in addition to cov.xml (and others?), it would work out of the box.

ryanluker commented 5 years ago

@SimonKagstrom thanks for issue! In the 2.2.1 release there is a new extension attribute that lets you add more coverage file names [0] can you try adding yours there (then restart vscode) and see if that picks it up for you? The two original values (lcov name and xml name) will eventually be removed in the next major release (until then they work together, if you are curious here is the code for that [1]).

[0] https://github.com/ryanluker/vscode-coverage-gutters/blob/master/package.json#L131-L139 [1] https://github.com/ryanluker/vscode-coverage-gutters/blob/master/src/extension/config.ts#L63-L68

SimonKagstrom commented 5 years ago

Yes, that works just fine!

ryanluker commented 5 years ago

@SimonKagstrom excellent, also I am glad to hear the extension provides value to you, thanks again for submitting an issue!