Branch coverage always shows up as "no data found" in the PR comment #17
-
Hello all, I am using the v1.4.0 version of github-actions-report-lcov. This is how I invoke it from my github workflow.
I notice that when the job completes, the PR comment it leaves always has "no data found" for the branch coverage. It does however report reasonable numbers for lines and functions coverage. What could be wrong? In the log, I see the following (just pasting the relevant lines)
As can be seen, the branch coverage does get populated correctly in what appears to be the first of the three runs. The second and third runs however do not have any branch coverage data. Anyone knows why lcov is invoked three times? And why the branch coverage data gets removed after the second and third runs? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Interesting. My projects never produce the coverage rate for branches so I never had the chance to confirm that. I think the issue occurs when the script attempts to merge all of the coverages. I'm not sure if it's a limitation of the github-actions-report-lcov/src/main.js Lines 80 to 97 in 7b8cc5c Can you try running the command manually? Or if the repo is public, maybe I can check it myself (but please be patient — I only have weekends to sit on things). |
Beta Was this translation helpful? Give feedback.
-
Thanks @zgosalvez for the quick answer. Here is my PR where I am trying to get this to work -> balaji-nordic/sdk-nrf#3 . It is a public repo. So you should be able to see changes and the logs. P.S: I too work sporadically on this. So there is no rush :-) |
Beta Was this translation helpful? Give feedback.
-
Fixed by #19 |
Beta Was this translation helpful? Give feedback.
Fixed by #19