-
Notifications
You must be signed in to change notification settings - Fork 27
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
Ensure overridden reporter methods are called #18
Conversation
Thanks, again, @bryanforbes! |
No problem. I didn't realize that |
@bryanforbes thanks for sorting it so quickly! 😄 I've nearly got it working now, the text summary works and the html files are created, but the files that display the individual coverage per file aren't, the error thrown is:
I'm using webpack and the istanbul-instrument-loader to instrument the code, any ideas? This is the project I'm trying to run it on: https://github.com/mattlewis92/angular2-calendar/tree/upgrade-karma-remap-istanbul |
@mattlewis92 I'm looking into this right now. Thanks. |
@mattlewis92 I want to just focus on a new out of the box CLI app. This removes any possibility of edge cases. Could you please test that first. I don't want to have @bryanforbes running around in circles looking for edge cases etc. Especially since the was kind enough to work on this for me. ❤️❤️❤️ |
Oops sorry thus was meant for the CLI repo sorry!!! |
@mattlewis92 There is currently an issue with |
@bryanforbes that did the trick, thanks so much for your assistance with this, I really appreciate your help 😃 I'll work on a PR later to add some tests to this repo + a full e2e example to help others in the future |
@bryanforbes I am getting the same type of error as @mattlewis92, but if I run remap-istanbul from the command line using the same coverage JSON file as what karma-remap-istanbul is trying to consume, the HTML report is generated just fine. |
@EarthCitizen this is the config I'm using (for karma + webpack): mattlewis92/angular-calendar@574afc6 |
Related conversation in #21 |
The trick is to use the sourcemap-istanbul-instrumenter-loader instead of the normal Istanbul loader with the force-sourcemap option 😀
|
I tried that, and it does not fail, but HTML report is empty. |
What's your tsconfig?
|
|
@mattlewis92 Have a look at the results from my investigation in #21 It really seems to point to karma-remap-istanbul. |
Replace the inlineSourceMap option with sourceMap and it should work
|
This fixes the issue reported by @mattlewis92 in the comments in #17.