MishaKav / pytest-coverage-comment

Comments a pull request with the pytest code coverage badge and full report
MIT License
182 stars 60 forks source link

Add input for skipping full covered files from xml #186

Closed NikTerentev closed 1 month ago

NikTerentev commented 1 month ago

I am using this action for generate a report from xml coverage. After the project size increased, I started thinking about hiding 100 percent covered lines in this report. However, after studying the documentation, I found that hiding covered lines is not available. So i decided to add this feature manually.

Coverage itself does not have such functionality. Here is a comment from a Coverage developer about adding such functionality: PR. He suggested making changes specifically to the program that displays reports (in this case this action).

Here is an example before and after using the new parameter:

Before:

image

After:

image


Full covered file:

image

MishaKav commented 1 month ago

@NikTerentev Big thanks for such a great feature and implementation, just released a new version v1.1.53 with your changes