-
Notifications
You must be signed in to change notification settings - Fork 40
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
Make diff information available about "new" lines #117
Comments
New lines seem like a useful metric to display. I can see how people can get a sense of how large the change is by looking at "New". What about you and your team, what was useful about it specifically? I've never really used Discussions, I'm fine either way :) |
Here's an example case:
In this case, 36 hit lines were replaced with 7 lines. This is not immediately clear to some of our developers just by looking at the diff. There are a few cases where this is... useful, but this is the most immediate I've found. I'm definitely open to suggestions for better metrics/ways of presenting the data, as I suspect you are too. |
Works for me! If you want to add this to the output of pycobertura, go for it! 👍 I think it could be a useful metric to have by default. |
@loganharbour Do you have any update here? |
I've had this working without issue externally. I haven't found the time to port it over quite yet. Still need to write it such that it avoids duplicate effort when ran with the other default statistics. If there's increased interest, I don't mind making it a higher priority! |
Hi @loganharbour |
From an output perspective I wonder if it should go more in the direction of the |
From a code review prospective, we've found it valuable to have information about the lines of code that are edited (I refer to this here as "new"). I produce a table like this on PRs:
Where the new line coverage is generated with something like this:
I'm curious if this has any place here instead - maybe at the very least as a helper that will produce something as such? I don't mind keeping this in our local generation, but the peace of mind of having it tested here instead is nice.
EDIT: maybe this has a better place in Discussions to get that kicked off?
The text was updated successfully, but these errors were encountered: