jest-github-action icon indicating copy to clipboard operation
jest-github-action copied to clipboard

Add test coverage summary to report comment

Open tobiasbueschel opened this issue 4 years ago • 2 comments

@mattallty what do you think about adding a summary of the overall test coverage report to the reporting comment, for example like this:


File % Stmts % Branch % Funcs % Lines
All files 91.2 94.15 90.42 81.55
Test coverage detailed results

... detailed results https://github.com/mattallty/jest-github-action/issues/27

tobiasbueschel avatar Jan 12 '21 17:01 tobiasbueschel

We've done something like that in https://github.com/FirmNav/jest-code-coverage-commenter/blob/master/src/code-coverage.ts which may work for inspiration

Jacse avatar Jan 24 '21 13:01 Jacse

I find the solution in a similar package https://github.com/marketplace/actions/jest-coverage-comment

MishaKav avatar Mar 31 '22 23:03 MishaKav