Display test coverage generated by lcov or xml in Visual Studio Code #209
josecelano
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @WarmBeer @da2ce7, There is a Visual Studio Code extension to show the line coverage.
Extension: https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters
Install
llvm-cov: https://github.com/taiki-e/cargo-llvm-covRun
That command will generate a lcov file. The extension automatically looks for files with that extension.
On the navigation bar, you will see a new option:
You can change the extension settings to show always the line coverage:
Result
You can easily see what lines are not covered yet.
Beta Was this translation helpful? Give feedback.
All reactions