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

cenfun/codeceptjs-monocart-coverage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published