This extension shows native V8 code coverage in VSCode
Requirements: this extension works with monocart-coverage-reports
Install monocart-coverage-reports
and generate coverage-report.json
file with v8-json
report.
const coverageOptions = {
// ...
reports: ['v8-json']
// ...
}
Test with TypeScript
project, open the file checker.ts
(52K+ lines)
VSCode officially supports coverage view for the test runner, see test-coverage, I've tried adding V8 coverage data for the test runner, but it didn't luck. Maybe someone can help.