Skip to content

Add test coverage reporting - #24

Closed
dyk1454683243-sudo wants to merge 2 commits into
DevOlabode:mainfrom
dyk1454683243-sudo:cursor/test-coverage-reporting-d8b7
Closed

dyk1454683243-sudo wants to merge 2 commits into
DevOlabode:mainfrom
dyk1454683243-sudo:cursor/test-coverage-reporting-d8b7

Conversation

@dyk1454683243-sudo

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds coverage reporting on top of the existing node --test suite, without a new dependency or a percentage gate.

  • npm run test:coverage runs node --test --experimental-test-coverage via scripts/coverage-report.js and writes the per-file table to coverage/coverage.txt (gitignored).
  • CI uses that script instead of npm test so the suite still fails the job on a broken test, then uploads the text report as the coverage-report artifact. There is no line/branch/function threshold.
  • docs/development.md documents how to run it, how to read the table, and the current baseline (~67% lines / ~83% branches / ~63% functions).

The script is named coverage-report.js on purpose: Node's default test globs include test-*.js, so a file called test-coverage.js would be picked up as a test.

Related Issue

Fixes #12

Type of Change

  • Bug fix
  • New feature
  • Documentation
  • Refactor
  • Tests

Screenshots

Not a UI change.

Checklist

  • I followed the contribution guidelines
  • I tested my changes
  • I updated documentation if necessary
  • This PR focuses on one change

Add npm run test:coverage using Node's built-in test coverage, persist
the per-file table, and upload it as a CI artifact. No percentage gate.

Co-authored-by: David <dyk1454683243-sudo@users.noreply.github.com>
@vercel

vercel Bot commented Sep 18, 2026

Copy link
Copy Markdown

@cursoragent is attempting to deploy a commit to the solabode499-5056's projects Team on Vercel.

A member of the Team first needs to authorize it.

The all-files totals are the same locally and in CI, so drop the
unnecessary drift caveat.

Co-authored-by: David <dyk1454683243-sudo@users.noreply.github.com>
@dyk1454683243-sudo

Copy link
Copy Markdown
Contributor Author

Withdrawing this PR while I clean up a high-volume open-PR backlog. Sorry for the noise — happy to come back later with a focused change if useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add test coverage reporting

2 participants