cenfun / codeceptjs-monocart-coverage

CodeceptJS Monocart Coverage Reports

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

CodeceptJS Monocart Coverage Reports

License:MIT License


Languages

Language:JavaScript 100.0%