Selenium Webdriver integrate with monocart coverage reports
npm i monocart-coverage-reports selenium-webdriver mocha -D
Collect coverage data with hooks before
and after
- Chrome Browser: see test/chrome.test.js
- Edge Browser: see test/edge.test.js
- Create mocha fixtures.js for generating coverage reports
- Set coverage options in config file mcr.config.js
npm run test
The coverage report will be found here: coverage-reports/index.html
Check monocart coverage reports for more coverage options.