golangci / golangci-lint

Fast linters runner for Go
https://golangci-lint.run
GNU General Public License v3.0
14.85k stars 1.34k forks source link

Show project test coverage for a PR #4769

Closed alexandear closed 1 month ago

alexandear commented 1 month ago

Your feature request related to a problem? Please describe

In order to ensure the quality of our code, it would be beneficial to display the test coverage for each pull request. This will allow us to easily identify any areas of the code that are not adequately covered by tests and need attention.

Describe the solution you'd like

Add a make target that run all tests with coverage. Generate coverage Markdown report and add a comment with this report to every PR. See https://josh-ops.com/posts/github-code-coverage/

Describe alternatives you've considered

Use https://coveralls.io/, it's free for Open Source projects.

Additional context

No response

ldez commented 1 month ago

This is mainly useless and noise on PR: