Skip to content
| Marketplace
Sign in
Visual Studio Code>Testing>Code CoverageNew to Visual Studio Code? Get it now.

Code Coverage

Markis Taylor

|
152,487 installs
| (6) | Free
Highlight lines not covered by unit tests.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Code Coverage

Code coverage will highlight lines of code that are not covered by tests. It will list the uncovered lines under the problems window. And it conveniently shows the coverage ratio in the status bar.

Demo

Features

  • Small memory and processor footprint
  • Multiple lcov file handler

Setup

  • Generate .lcov coverage files using your language's code coverage tools
  • Set the coverage location setting markiscodecoverage.searchCriteria, default: coverage/lcov*.info

Commands

There are commands to hide and show lines of coverage. Also, it's possible to map commands to key bindings in vscode.

  • code-coverage.hide will hide the code coverage
  • code-coverage.show will show the code coverage
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft