vue-cli
vue-cli copied to clipboard
How to enable code coverage for @vue/cli-plugin-e2e-cypress?
What problem does this feature solve?
Coverage reporting for e2e tests
What does the proposed API look like?
It is not currently clear how to enable coverage for e2e tests using the cypress plugin. Setup requires instrumenting the server with nyc/Istanbul and when running with a command like yarn nyc --reporter=lcov --reporter=text vue-cli-service test:e2e only vue.config.js and postcss.config.js get coverage reports (I wouldn't call this a bug).
It would seem like this plugin should enable an easy configuration like yarn test:e2e --coverage.
@pattrickrice do you have any news on that? I'm facing the same issue