Native code coverage in Chrome browser via Debugger protocol during Cypress end-to-end tests
- Connecting to Chrome via chrome-remote-interface copied from flotwig/cypress-log-to-output.
- Code coverage via Debugger Protocol copied from cyrus-and/chrome-remote-interface#170. See cypress/plugins/index.js
- Conversion of v8 coverage to Istanbul-compatible coverage using v8-to-istanbul
npm run cy:open
npm run report
The output is saved to coverage/index.html