Replies: 6 comments
-
Thanks for the pointer. I'm not entirely sure how to put this into the lcov readme - as that doc doesn't currently have any references to complimentary tools and plugins. Open to suggestion. Two minor comments on the README.md link above...while it mentions differential coverage and I know what that must mean (in the context of lcov, at least) - it is very possible that some of your users do not - so it might be useful to either briefly explain or insert a pointer to additional information. Henry |
Beta Was this translation helpful? Give feedback.
-
Hi Henry Thanks for the feedback. I added some explanation of 'differential coverage' to the README.md, hope it's clearer now. The current implementation here is in gcov.py. For 'standard' coverage analysis, it uses For differential coverage analysis, it's assumed that the user has run
This produces only a I'd welcome any thoughts on ways of making this easier. Perhaps the 'calculate baseline' step could be added via a button in Gedit somehow, but I didn't yet work out a way to do that. Cheers |
Beta Was this translation helpful? Give feedback.
-
At least in most cases I see: the source code is changing along with the tests - so the differential categorization needs to account for missing and new lines - otherwise, the baseline data can't be compared to current. As far as clarifying differential coverage...I suspect that the easiest and most complete approach is to include a reference (hyperlink, to somewhere useful). |
Beta Was this translation helpful? Give feedback.
-
Interesting! Changing source code was not part of my use-case, but I can see that it would normally be so. I added a link to your paper on arXiv. I see that this would add significant complexity to the task, which my approach doesn't address at all. Do you have any ideas for how I could leverage |
Beta Was this translation helpful? Give feedback.
-
Right. I didn't take a close look at your code. As you say: there are 12 differential categories (10, if you don't consider 'deleted' code, which won't appear in the editor). That makes categorization a bit more complex because you need to both map where lines came from/went to as well as whether they were covered/not covered/not code in the past. A utility to save the differential DB seems like a worthy project/something worth merging if someone was to implement it. (Edit 18 Sept/2025: forgot to mention that the |
Beta Was this translation helpful? Give feedback.
-
Moved this topic from "issues" to "discussions" - since it is really not an issue/bug IMO. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all
Not an issue, but perhaps something you might like to note in your README file for
lcov
.I've written an integration for Gcov/Lcov into Gedit, which does highlighting of coverage, including differential coverage, in Gedit.
The gedit plugin can be installed using
scons install
and will pick up lcov output from a.lcov
folder in the project root, and use it as the basis for file highlighting.See here for details, including screenshot.
https://github.com/ascend4/ascend4/blob/python3/tools/gedit/gcov/README.md
Cheers
JP
Beta Was this translation helpful? Give feedback.
All reactions