-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation to code coverage #125
Comments
Hi @philippjenni, this is in fact an interesting feature that we didn't dive into yet. Thank you for raising this. |
I have tried it to integrate with "istanbul-instrumenter-loader". The problem is, that is currently not possible to inject the required coverage webpack to the devserver. There are some examples, how codecoverage is to be integrated with cypress, but it requires always to inject the webpack config. |
Just been trying to do this, we get coverage from cypress normally by using the |
I tried to pass the settings to the web server via the webpackConfig property. This works as far as possible. The configuration in the DevWebServer looks OK, but the Coverage variable is not filled during the test, which leads to the message that the instrumentation was not started. At the moment I have no idea what the problem is. |
I have pushed my test repo to https://github.com/philippjenni/angular-library-cypress |
Is there any documentation how i can use or integrate code coverage for my tests. I use the 'cypress-angular' plugin to test components in an angular sub project. That works fine but i would like use code coverage for the project. The components are loaded with mount and then tested.
The text was updated successfully, but these errors were encountered: