-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
lcov file misses line numbers. #20
Comments
I think you are somehow using istanbul v0.x for reporting even if you are using the babel plugin. Please make sure that all istanbul libs are the latest |
In my package.json I added: "istanbul": "1.1.0-alpha.1" just to be sure. Now when I generate the lcov file I still get the same results. |
@MrHus could you share an example of a failing project with us? |
@bcoe I've done this you can see it here: |
Hi, I'm having the same exact problem right now, did you manage to solve this issue? |
@di2pojo No I never managed to solve the problem. I'm still hoping for a solution. |
Same problem here, it's giving me a lot of troubles integrating it with SonarQube, eg:
|
We have exactly the same issue as reported by @matteoantoci. Were anyone able to solve the issue? I tried to bump to the latest version, but it didn't changed anything. |
This is potentially a problem with Karma coverage reporter, I ran into this issue at work the other day. Running tests using the mocha cli and then calling nyc generated a correct lcov report without missing line numbers. |
I'd like to keep using Karma coverage reporter. Interestingly, this defect is not open on the karma-coverage project. I just took a look at the codebase of this plugin and it is pretty minimal, so I am unsure where the defect lies. Also taking a look on the instambul codebase I can't see how it might come from there. Update: I've finally found where the defect lies. istanbuljs-archived-repos/istanbul-lib-instrument#14 I recommend to close this issue from this project. |
It is fixed now. Try it. |
thanks @nowycheung, but I cannot see the 4.1.0 release in the npm repository |
try:
npm install babel-plugin-Istanbul@next
I'll promote to latest once a few folks have tested it out.
…On Tuesday, March 21, 2017, Chexpir ***@***.***> wrote:
thanks @nowycheung <https://github.com/nowycheung>, I've seen positive
feedback on the istanbuljs repo link, but I cannot see the 4.1.0 release in
the npm repository <https://www.npmjs.com/package/babel-plugin-istanbul>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAL4MThq5WXMu215dtyz0khElDMe7_7nks5rn5hmgaJpZM4JRpYG>
.
|
this should now be fixed \o/ |
When the lcov file is generated it is missing line numbers.
This is what is generated:
You can see
FN:,(anonymous_1)
which is false because it needs to have a line number before the comma, according to: http://ltp.sourceforge.net/coverage/lcov/geninfo.1.phpMy configuration is:
Did I misconfigure something, or did I stumble unto a bug?
The text was updated successfully, but these errors were encountered: