-
Notifications
You must be signed in to change notification settings - Fork 785
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
incorrect "if path not taken" #123
Comments
That looks completely bogus. It looks like istanbul is getting confused and applying the metrics for one file against a different one in the HTML report. |
I see, is there any additional information that i can provide ? Its
|
I have the same issue. Actually I just dived a little deeper; it seems to have to do with the location of app.js and the used Jasmine configuration. My current Jasmine configuration is: It seems to have to do with the location of app.js; if I move it one level lower (i.e. in a subfolder), the issue no longer occurs. It may also have to do with Karma: here is my Karma configuration: require('./karma.base.conf')(config);
Note the two lines of preprocessors. I have managed to fix it in two ways:
tl;dr, it seems that app.js is preprocessed twice with the above karma preprocessor configuration. |
@fwielstra - would it be possible for you to submit a patch for the karma-istanbul plugin to fix this issue? |
closing since this is not an istanbul issue. |
Istanbul is reporting "If path not taken", since there are no `if`` statements in this snippet i'm not sure how i can improve coverage
Is this a bug or is there someway i can change my code to improve coverage ?
The text was updated successfully, but these errors were encountered: