Replies: 4 comments 8 replies
-
If I understand your question: yes. (If I have misunderstood, please attempt to clarify and we can try to find a way to solve) The approach:
An orthogonal approach is to look at the date bins in your code. The idea there is to categorize code both by coverage status and by the time it was written or last changed - on the assumption that recently written and/or recently changed code is more interesting than code from long ago. The paper discusses how differential and date categorization differ and why you might want to use both. Hope this helps |
Beta Was this translation helpful? Give feedback.
-
@henry2cox Correct me if I'm wrong, differential coverage will color code the diff data however the html report will still capture all source file (See attached screenshot from the differential coverage example) Is there a way to limit the report to only the files / lines changed in the diff (plus some lines of context) My real example has files that are 10000s lines of code and 100s of files. I would like to capture only the files and lines that have changed in the diff. You can filter unwanted files via the |
Beta Was this translation helpful? Give feedback.
-
Thanks for you reply
I have a fairly typical scenario, engineers submit code reviews, we compute the differential coverage for changes captured in the code reviews. Code reviewers look at UNC and GNC metrics. However as you pointed out, LBC is also a useful metric.
Thanks, that seems to be the default behavior, however I was using the scripts/gitdiff tool which also includes unchanged files in the diff.
I wonder if this would be more helpful in the generated html where you would have a checkmark for each category and you would be able to toggle the displayed categories on / off |
Beta Was this translation helpful? Give feedback.
-
Uploaded my prototype here: To test it you need to build the differential example: The categories headers will become buttons that you can now toggle on/off. Toggling a category off will hide it in the files / folder table. If an entry (file / folder) has not data for the remaining categories it will also get hidden |
Beta Was this translation helpful? Give feedback.
-
i already have a full coverage tracefile, but i want to have a html report to only show the coverage of my delta code in a PR, is there a way to do this?
or can genhtml receives an input of git diff file, and generates html report only based on the diff file?
Beta Was this translation helpful? Give feedback.
All reactions