-
Notifications
You must be signed in to change notification settings - Fork 248
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
Regression v2.0.1 -> v2.0.2: Exit code not set when thresholds aren't met #418
Comments
Just to make a note, currently we the Angular CLI team are trying the migrate and use this package and we also encountered this issue. |
…er#418 onComplete are async method which should bw complete in onExit method
I created PR, please take a look. If you ok with fix, please let me know |
…er#418 onComplete are async method which should bw complete in onExit method
…er#418 onComplete are async method which should bw complete in onExit method
@anthony-redFox I could successfully validate your PR as well. But it still needs the 'exit' event change in |
@anthony-redFox I added some comments to your PR. I think our PRs both do pretty much the same thing. |
fix(report): waiting promise resolve in onExist method fix #418
## [2.0.3](v2.0.2...v2.0.3) (2020-07-24) ### Bug Fixes * **report:** waiting promise resolve in onExist method fix [#418](#418) ([c93f061](c93f061))
🎉 This issue has been resolved in version 2.0.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@anthony-redFox thanks for doing a release. But I'm not sure whether this makes sense without karma-runner/karma#3541 being accepted/merged. Would you mind re-opening this issue, as this actual problem for the consumer is not solved yet. |
Solved with karma v5.2.0 (in combination with karma-coverage v2.0.3) |
…rage karma-coverage to solve regression with karma-coverage v2.0.2: karma-runner/karma-coverage#418 Use new karma-ui5 option "failOnEmptyTestPage". Exclude thirdparty code from coverage preprocessing. We don't want to collect coverage scores from thirdparty code. Also, with karma-coverage v2.0.2+ there is an issue with instrumenting sinon-4.js, as it contains a very large inline source map that causes a heap out of memory error in @babel/core. Change-Id: I8b74ce6fc6b149d0acc49af2275aa84320346562
As already mentioned in my comment, there is a regression caused by #403 which prevents the exit code from being set in time, which causes the process not to fail in case the coverage threshold is not met.
I've created a small example to show-case the current behavior and also did some PoC on how it might be solved:
https://github.com/matz3/issue-karma-coverage-threshold-exit-code
Here are the changes to karma and karma-coverage
With v2.0.1 everything seems to work fine.
The text was updated successfully, but these errors were encountered: