clarinet icon indicating copy to clipboard operation
clarinet copied to clipboard

Support for code coverage visualization in VSCode

Open lgalabru opened this issue 2 years ago • 5 comments

See https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters for developer experience. We could have a mode where the coverage is refreshed every-time the developer save a file: having coverage with such a tight feedback loop would be a serious productivity boost.

lgalabru avatar Jun 30 '23 09:06 lgalabru

I'll test if it already works. See with @MicaiahReid about the lcov format compatibility issue

hugoclrd avatar Jul 03 '23 16:07 hugoclrd

@lgalabru It seems to be working fine (I probably need to test on bigger project). The only requirement would be to rename the lcov file into lcov.info (or add the "coverage-gutters.coverageFileNames" option in the workspace settings)

Screenshot: Screenshot 2023-07-03 at 19 54 17

hugoclrd avatar Jul 03 '23 17:07 hugoclrd

That's really cool? So is this feature native to VScode, or do we have to install the extra extension? would it make sense to augment our extension to support this out of the box?

lgalabru avatar Jul 03 '23 18:07 lgalabru

We should probably document this! cc @LakshmiLavanyaKasturi

lgalabru avatar Jul 03 '23 18:07 lgalabru

This is with the extension you linked.

would it make sense to augment our extension to support this out of the box?

Why reinvent the wheel? Or it would be a very low priority task

hugoclrd avatar Jul 03 '23 18:07 hugoclrd