-
Notifications
You must be signed in to change notification settings - Fork 108
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
Show how to instrument and get code coverage for Angular application #51
Comments
In the meantime where I can get the information how to implement this, I'am in exactly this situation, guidance is really appreciated ! I am using angular & cypress & TypeScript with WebPack |
Finally succeed !!! You can find here a working example https://github.com/skylock/cypress-angular-coverage-example |
nice, tried it locally and it works @skylock |
🎉 This issue has been resolved in version 1.9.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This this should be revisited, because @skylock implementation uses istanbul-instrumenter-loader, which isn't maintained and has a very old istanbul-lib-instrument dependency. Maybe there's some way to use babel-plugin-istanbul instead? EDIT |
Can you point to an github repo with an working example ? |
See your example repository issue for details. |
@skylock it doesn't work with angular version 9.1.4 |
@Elif5757 I made code coverage work with Angular 9, I wrote up a quick guide on it: https://lukas-klement.medium.com/implementing-code-coverage-with-angular-and-cypress-6ed08ed7e617 |
LukasKlement can you update for angular 18 with code coverage in blog or any detail explanation facing issues #893 |
Would be nice to show an application scaffolded using https://nx.dev/angular/guides/modernize-cypress with TypeScript and code coverage from end-to-end tests
The text was updated successfully, but these errors were encountered: