Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Latest commit

 

History

History
49 lines (44 loc) · 1.62 KB

README.md

File metadata and controls

49 lines (44 loc) · 1.62 KB

codeceptjs-monocart-coverage

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.

Install

npm i codeceptjs-monocart-coverage

Usage

// 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.