Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/flutterando/flutter-coverage
- Owner: Flutterando
- License: apache-2.0
- Created: 2021-08-21T19:48:08.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-08T01:24:26.000Z (about 2 years ago)
- Last Synced: 2023-03-10T13:10:58.127Z (almost 2 years ago)
- Language: TypeScript
- Size: 1.79 MB
- Stars: 30
- Watchers: 5
- Forks: 3
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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.tsFORK for https://github.com/tenninebt/vscode-koverage