Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cenfun/monocart-coverage-vscode
Monocart Coverage for VSCode
https://github.com/cenfun/monocart-coverage-vscode
coverage monocart v8 vscode
Last synced: 28 days ago
JSON representation
Monocart Coverage for VSCode
- Host: GitHub
- URL: https://github.com/cenfun/monocart-coverage-vscode
- Owner: cenfun
- License: mit
- Created: 2024-07-29T15:05:31.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-28T04:59:17.000Z (about 2 months ago)
- Last Synced: 2024-10-07T15:22:49.589Z (about 1 month ago)
- Topics: coverage, monocart, v8, vscode
- Language: JavaScript
- Homepage:
- Size: 2.18 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Monocart Coverage for VSCode
This extension shows native V8 code coverage in VSCode
![](assets/preview.gif)
## Getting Started
Requirements: this extension works with [monocart-coverage-reports](https://github.com/cenfun/monocart-coverage-reports)
Install `monocart-coverage-reports` and generate `coverage-report.json` file with `v8-json` report.
```js
const coverageOptions = {
// ...
reports: ['v8-json']
// ...
}
```## Performance
Test with `TypeScript` project, open the file `checker.ts` (52K+ lines)
![](assets/performance.gif)
## Coverage for Test Runner
VSCode officially supports coverage view for the test runner, see [test-coverage](https://code.visualstudio.com/api/extension-guides/testing#test-coverage), I've tried adding V8 coverage data for the test runner, but it didn't luck. Maybe someone can help.