-
Notifications
You must be signed in to change notification settings - Fork 32
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
This is a test PR #235
This is a test PR #235
Conversation
for more information, see https://pre-commit.ci
Coverage reportCoverage details
This report was generated by python-coverage-comment-action |
Coverage reportThe coverage rate went from
Diff Coverage details (click to unfold)coverage_comment/main.py
coverage_comment/files.py
|
I don't have any other idea for my comment above. I believe we're good from my point of view. Any other change you'd like to make @kieferro ? |
That looks pretty good. Much clearer and more informative. However, I still have two things:
|
What I had in mind was to iterate on all the files that appeared on the coverage report, group them by "full folder path" and then display all the files belonging in the same folder together. No nesting. So for example:
Excellent point. I guess it would make sense to have the new coverage (or even the evolution in coverage) for each file, but also the diff coverage, and those are 2 different things.
Is it too much ? I'm afraid it might be overwhelming. |
If we have previous coverage Coverage reportCoverage details
This report was generated by python-coverage-comment-action If we don't have previous coverage Coverage reportCoverage details
This report was generated by python-coverage-comment-action |
Note I don't know which of those is better: 96% |
Yes , sounds good. |
I also like the new proposal, but I found the old one a bit tidier and easier to understand at first glance and actually I don't think it needs that many changes to the structure. I would just add a delta for each value. In order to highlight this in colour, we would have to work with a relatively large number of badges, because Markdown unfortunately doesn't support this natively, but otherwise why not just modify the original idea a little bit (The numerical values don't make sense, but you get the idea): Coverage reportSee where and how coverage changed
This report was generated by python-coverage-comment-action Also, I'm not quite sure if it makes sense to link all the missing lines. I can imagine that there are projects that do not yet have much coverage, which means that the missing lines that are actually relevant for PR are lost in the mass of missing lines. That's why I wonder if we shouldn't just focus on those? |
Good point, I hadn't thought about that but, of course, it makes a lot of sense to do it that way.
Yes, I have thought about that too. I also thought about whether it would make more sense to write
Ah sorry, I had just accidentally copied those from the original example. I'm completely on board with removing those 👍
I'm not quite sure what you mean. For example files.py had 64 statements before and now has two more so 66 and it had 2 not covered statements and now has 3 not covered statements. Are you referring to the difference between statements and lines or what other information would be necessary in your opinion?
I'm not sure, it takes up quite a lot of space. Why don't we move the information from it to the area that is clicked to expand: Coverage details (Information about all the files where coverage has changed) |
Say files.py had 64 statements and now has 66, and has 50% of added lines covered. Without more information, you'd probably think you added 2 lines, one of which was covered. But maybe you actually rewrote the whole file and covered 33 lines, so we'd be missing 33 lines. I think the number of added lines may be important and is not deduced just by seeing how many lines there were before and there are now because you don't know how many were deleted. The list of lines missing coverage may help get a sense of this but it's only showing missing lines. |
Ah okay, I see. I have edited my proposal and also added this information. I think that it also looks a bit more consistent now. Would you agree with the layout and styling then? |
I think we're good! |
I am currently working on the PR and I feel that it would be useful to make the selection of files that appear in the table a little different than it is now. |
Yes, "listing all files where coverage has changed" was my current understanding of what we wanted to do so I guess we're aligned ? |
Closed by #211 |
This PR introduces bogus code, but is here as a draft for collaborating on improving the coverage comment, related to #189