Frameworks and tools
Find integrations for browser tests, Vitest and Jest, TypeScript, or VS Code. If your framework is not listed, see generic CLI and API integration.
Playwright
For collection code, see Collect V8 coverage with Playwright.
- playwright-coverage - Example for Playwright coverage reports
- playwright-bdd-coverage - Example for Playwright BDD coverage reports
- monocart-reporter - Playwright custom reporter, supports generating Code coverage report
- Coverage for component testing with
monocart-reporter: - Coverage for Next.js, both server side and client side:
- Coverage for Remix:
Puppeteer
For collection code, see Collect V8 coverage with Puppeteer.
- jest-puppeteer-coverage - Example for Jest puppeteer coverage
- maplibre-gl-js - Example for Jest (unit) + Puppeteer (e2e) + Codecov
Vitest
- vitest-monocart-coverage - Vitest custom provider module for coverage reports
- merge-code-coverage-vitest - Example for merging code coverage (Vitest unit + Playwright e2e sharding)
Jest
- jest-monocart-coverage - Jest custom reporter for coverage reports
- merge-code-coverage - Example for merging code coverage (Jest unit + Playwright e2e sharding)
Cypress
- cypress-monocart-coverage - Cypress plugin for coverage reports
WebdriverIO
- wdio-monocart-service - WebdriverIO service for coverage reports
Storybook Test Runner
- storybook-monocart-coverage - Example for Storybook V8 coverage reports
Selenium Webdriver
- selenium-webdriver-coverage - Example for Selenium Webdriver V8 coverage reports
CodeceptJS
- CodeceptJS is a BDD + AI testing framework for e2e testing, it has integrated
MCRsince v3.5.15, see plugins/coverage
TestCafe
- testcafe-reporter-coverage - TestCafe custom reporter for coverage reports
TypeScript
For Node.js 22.18.0 or later, prefer built-in type stripping to run TypeScript with erasable syntax. No build step or external loader is needed.
npx mcr node ./src/example.ts
npx mcr test "./test/**/*.test.ts"For setup and coverage behavior, see TypeScript support. For tsx and ts-node examples, see External loaders.
VSCode
- Monocart Coverage for VSCode - Shows native V8 code coverage in VSCode
Node.js coverage reporter
- node-monocart-coverage - Custom reporter for Node test runner for coverage
We recommend using mcr test directly instead of configuring a separate coverage reporter; see Run tests with mcr test.
c8
- c8 has integrated
MCRas an experimental feature since v10.1.0
c8 --experimental-monocart --reporter=v8 --reporter=console-details node foo.jsFor Node.js's built-in test runner, we recommend using mcr test instead of a separate coverage collection workflow; see Run tests with mcr test.
Mocha
mcr mocha ./test/**/*.jsFor Node.js unit and integration tests, we recommend using mcr test instead; see Run tests with mcr test.
AVA
mcr avaFor Node.js unit and integration tests, we recommend using mcr test instead; see Run tests with mcr test.
Note: Replacing a test runner with mcr test means migrating to node:test, not just changing the command; test APIs, assertions and hooks may need adapting.