Skip to content

Best practices ​

For new test setups, prefer native coverage collection without an instrumentation step:

TargetRecommended setupResponsibility
Node.jsNode.js native test runner + mcr testnode:test runs assertions; MCR automatically collects native V8 JavaScript coverage and generates reports.
BrowserPlaywright Test + MCRPlaywright runs assertions; automatic fixtures collect Chromium JS/CSS coverage; MCR merges it and generates reports.
Browser with integrated test reportingPlaywright Test + monocart-reporterThe reporter already integrates MCR; configure its coverage option and submit coverage from fixtures for unified test and coverage reporting.

For detailed setup instructions and examples, see the best-practices guide.