Skip to content
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

Not parsing lcov files generated in ruby? #181

Open
Nealsoni00 opened this issue May 10, 2022 · 2 comments
Open

Not parsing lcov files generated in ruby? #181

Nealsoni00 opened this issue May 10, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Nealsoni00
Copy link

Hey! I'm having trouble getting the extension setup:
image

When I cat the lcov.info file generated, I get the following format:
lcov.info

SF:./app/xxxxxx/xxxxx/xxxxxxxxxx.rb
DA:1,0
DA:2,0
DA:3,0
DA:5,0
DA:6,0
DA:7,0
DA:8,0
DA:9,0
end_of_record
SF:./app/xxxxxx/xxxxx/xxxxxxxxxx.rb
DA:1,0
DA:2,0
...
@vitaliimelnychuk vitaliimelnychuk self-assigned this May 16, 2022
@vitaliimelnychuk vitaliimelnychuk added the bug Something isn't working label May 16, 2022
@vitaliimelnychuk
Copy link
Member

Hello @Nealsoni00!

Thanks for reaching out. I just checked for the format i was testing with and it looks a bit different:

TN:
SF:src/Router.js
FN:17,(anonymous_0)
FNF:1
FNH:0
FNDA:0,(anonymous_0)
DA:17,0
DA:18,0
LF:2
LH:0
BRF:0
BRH:0
end_of_record

What library do you use to generate Lcov coverage for Ruby?

I think the main problem is with parsing Lcov file itself. We are using this library https://github.com/davglass/lcov-parse#readme to make parsing of Lcov files. Can you try if it works with your generated file?

@Nealsoni00
Copy link
Author

I'm using simplecov-lcov https://github.com/fortissimo1997/simplecov-lcov

It looks like the format is v similar, I'll try that parser later this week!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants