feat(testing): add codecov to generate test coverage reports#3194
feat(testing): add codecov to generate test coverage reports#3194repo-ranger[bot] merged 3 commits intomainfrom
Conversation
Codecov requires .xml format. We can get this from Jest by adding "clover" to our coverageReporters.
| "json-summary", | ||
| "text" | ||
| "text", | ||
| "clover" |
There was a problem hiding this comment.
TIL about clover! very cool. from this config it looks like collecting JS test coverage metrics isn't too difficult! definitely something we'd love to get your guidance with on the product side, I think, at some point :)
There was a problem hiding this comment.
Right?! I think it should be pretty easy. I believe I just need to install codecov then run it in CI and it should upload the results for us.
Would be more than happy to help on the product side :D
Codecov Report
@@ Coverage Diff @@
## main #3194 +/- ##
=======================================
Coverage ? 46.77%
=======================================
Files ? 23
Lines ? 1193
Branches ? 237
=======================================
Hits ? 558
Misses ? 451
Partials ? 184 Continue to review full report at Codecov.
|
I believe this is because it's looking for code coverage on the |
This PR adds support to generate test coverage reports on PRs using @codecov
Changes
CODECOV_TOKENsecret to projectclovertocoverageReportersfor unit tests (seejestkey onpackage.json)codecovas dev dependencycoveragescript topackage.jsonyarn coverageScreenshots
todo
Checklist
Fixes #3151