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
-
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
cargo llvm-cov --lcov --output-path=./coverage/lcov.info
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