Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/flutterando/flutter-coverage

VSCeode Extension for view the code coverage per folder/file in the test view
https://github.com/flutterando/flutter-coverage

Last synced: about 2 months ago
JSON representation

VSCeode Extension for view the code coverage per folder/file in the test view

Awesome Lists containing this project

README

        

# 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](https://github.com/Flutterando/flutter-coverage/blob/master/Capture.gif?raw=true)

## 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