Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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.