-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coverage: Switch to raw coverage files (#40013)
It turns out that there really aren't any really good generic coverage reporting tools, the best you can get is something that highlights covered lines without function/method stats, branch info, or anything else fancy. To provide useful coverage output, we're going to look instead at generating separate coverage dashboards for PHP (PHPUnit) and JS (jest/istanbul), each generated by those tools so we can get all the useful info possible. To do that, we'll need all the coverage commands to generate the tools' raw data formats rather than a lossy format like clover. As part of this conversion, we're adding `jest.config.cjs` everywhere so we can consistently set `collectCoverageFrom`. By default the base config will include non-test files under `src/`. Various packages need additional dirs such as `components/`, and a root-level `index.jsx` or `global.d.ts` seems common too. Then, since we have config files everywhere, we can move `coverageDirectory` and `coverageReporters` into the configs too. Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11642430412 Upstream-Ref: Automattic/jetpack@161c7a6
- Loading branch information
Showing
5 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters