-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Test-coverage says that coverage is not 100%, but it truly is! #5871
Comments
We have the same problem on this opensource project: https://gitlab.com/linagora/petals-cockpit (at commit 78c6928e4f78279a2a105fe357981a6cff88da21). |
Same issue here, certain constructor params are marked as 'branch not covered'. Same code / tests run against previous versions of the CLI report 100% coverage. |
Unfortunately I have the same. Even 4 issues in one constructor :( |
👍 having the same problem |
👍 encountered same issue |
At one point we switched the karma code-coverage plugin, that might be related. |
Same problem |
Same issue but I'm looking into the matter. Will start looking at what exactly the karma plugin is doing. |
fix it please :) |
Because of that reason, I'm using newest It's not silver bullet, the issue is still present in setup with |
Appears to be a duplicate of #5526 |
Well, not exactly... since we're not only experiencing it in constructors, but also in class parameters. |
I am also unable to cover 100% code coverage due to this problem. Will wait until it will be pushed into later version. currently using 1.1.0
these two properties are not covered expect everything else is fine. |
Going to close this one as duplicate of #5526, they are the same and the other one has a lot more info on the problem. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
Repro steps.
Upgrade your 100% tested angular 2.4.8 app to 4.0.1, along with Angular CLI 1.0.0
The log given by the failure.
There's no actual failure (stacktrace thown), but the behaviour of the text-coverage is wrong. I'm hitting every line, statement, branch and function of the code, but coverage does not "cover" constructor signature.
Desired functionality.
The test coverage should be 100%, and was until I upgraded from Angular 2.4.8 (CLI 1.0.0 RC.0) to Angular 4.01 (CLI 1.0.0).
Before
After
Coverage error (example)
Mention any other details that might be useful.
My karma.conf.js file looks like:
I'm unfortunately not permitted to share the code-base, since it's a closed source, propriatary product I'm working on. I can however provide you with various configuration files. So, do not refrain from asking for these.
The text was updated successfully, but these errors were encountered: