Skip to content

imoore76/vscode-koverage

 
 

Repository files navigation

Koverage

This extension adds a tree view to the test view container. It shows the coverage per file/folder.

Features

Demo

Extension Settings

This extension contributes the following settings:

  • koverage.coverageFileNames: coverage file names to look for, default: ["lcov.info", "cov.xml", "coverage.xml","jacoco.xml"]
  • koverage.coverageFilePaths: coverage paths where coverage files are located, default: ["coverage"]
  • koverage.lowCoverageThreshold: Percentage under which, the coverage is considered too low (Renders as Error icon)
  • koverage.sufficientCoverageThreshold: Percentage above which, the coverage is considered sufficient (Renders as Success icon) => lowCoverageThreshold < level < sufficientCoverageThreshold is rendered as Warn icon

Licencing

The coverage files parsing is a mainly from https://github.com/ryanluker/vscode-coverage-gutters by ryanluker. Thanks to him for the amazing extension he built and the very useful code that helped me build this extensions. Until proper licencing is added to the copied code, this note shall remain. The files concerned by this note (Copied source with modifications or using snippets) :

  • coverage-file.ts
  • coverage-parser.ts
  • data-provider.ts
  • files-loader.ts

Installation

  1. Install using the UI
  • Open Visual Studio Code and select View->Extensions from the menu to display the Extensions pane.
  • Click the ... at the top-right corner of the Extensions pane and select "Install from VSIX..." on the menu that appears.
  • Locate the .vsix file you downloaded and click "Open".
  1. Using terminal
  • code --install-extension vscode-koverage-0.0.4-dev.vsix

About

VSCode code coverage extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.3%
  • JavaScript 3.7%