What
Set up code coverage collection and add a coverage badge to the README.
Why
193 unit tests exist but no coverage metric is tracked. A coverage badge is a trust signal for quality and helps identify untested code paths.
Approach
-
Collect coverage using c8 (or node --test --experimental-test-coverage):
npx c8 --reporter=text --reporter=json-summary node --test ./out-test/test/unit/*.test.js
-
Report in CI with one of:
-
Add badge to README:
[](https://codecov.io/gh/patchloom/patchloom-vscode)
Per badge hygiene rule #3, only add the badge after coverage is at a reasonable level.
Identified by repo-badges skill audit.
What
Set up code coverage collection and add a coverage badge to the README.
Why
193 unit tests exist but no coverage metric is tracked. A coverage badge is a trust signal for quality and helps identify untested code paths.
Approach
Collect coverage using
c8(ornode --test --experimental-test-coverage):npx c8 --reporter=text --reporter=json-summary node --test ./out-test/test/unit/*.test.jsReport in CI with one of:
codecov/codecov-actionstepAdd badge to README:
Per badge hygiene rule #3, only add the badge after coverage is at a reasonable level.
Identified by repo-badges skill audit.