How can one view line-by-line code coverage in GitHub?

Viewed 297

I have a Node.js project, which includes Istanbul, a tool that can generate a code coverage report. I would like to see which lines are not covered and which are covered by tests in my GitHub Pull Requests for this project.

Istanbul allows me to see the coverage locally in the coverage/lcov-report directory, but I would like to see this the "Files Changed" tab of my Pull Requests in GitHub.

There are some tools that provide visual line-by-line coverage:

CodeCov does this, but requires that I upload a coverage report to their servers.

Covaralls does also, but requires that you give them access to your repository. Coveralls visual test coverage

Jest coverage report uses GitHub actions to add annotations, but cannot add visual indications (e.g. highlighting) of line-by-line test coverage.

enter image description here

Is there any other way to visualize line-by-line test coverage in a GitHub Pull Request?

0 Answers
Related