A CodeceptJS plugin for monocart coverage reports
Tip
CodeceptJS has integrated MCR
since v3.5.15, see plugins/coverage. There's no need to use this plugin anymore.
npm i codeceptjs-monocart-coverage
// codecept.conf.js
{
plugins: {
monocart: {
require: 'codeceptjs-monocart-coverage',
enabled: true,
coverageOptions: {
name: 'My CodeceptJS Coverage Report',
outputDir: 'coverage-reports'
}
}
},
helpers: {
// Coverage is only supported in Playwright or Puppeteer
Playwright: {
browser: 'chromium',
url: 'http://localhost',
show: false
}
// Puppeteer: {
// url: 'http://localhost',
// show: false
// }
// WebDriver: {
// url: 'http://localhost',
// browser: 'chrome'
// }
}
}
Check repo monocart coverage reports for more options.