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

Flutter Coverage

Flutterando

|
42,261 installs
| (6) | Free
VSCeode Extension for view the code coverage per folder/file in the test view
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Flutter Coverage

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

First

  • Don't forget:
flutter test --coverage

Features

Demo

Extension Settings

This extension contributes the following settings:

  • flutter-coverage.coverageFileNames: coverage file names to look for, default: ["lcov.info", "cov.xml", "coverage.xml","jacoco.xml"]
  • flutter-coverage.coverageFilePaths: coverage paths where coverage files are located, default: ["coverage"]
  • flutter-coverage.lowCoverageThreshold: Percentage under which, the coverage is considered too low (Renders as Error icon)
  • flutter-coverage.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

FORK for https://github.com/tenninebt/vscode-koverage

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft