Files
romm/.github/workflows
Sam Dornan fec6e494f7 ci(coverage): measure frontend coverage with v8 and backend branch coverage (#5407)
* ci(coverage): measure frontend coverage with v8 and backend branch coverage

The frontend had no coverage measurement, and the backend's line-only
report counts a one-sided `if` as covered when its body never runs.

- Add @vitest/coverage-v8 and `npm run test:coverage`. Its include lists
  every source file, so a file no test imports reports 0% instead of
  disappearing. Generated types, locales, tokens, test utilities,
  stories, fixtures and play helpers are excluded.
- Frontend Checks runs tests with coverage and uploads the cobertura
  report to GitHub code coverage as code-coverage/vitest, mirroring
  pytest.yml: a separate job holds code-quality: write and fork PRs skip
  the upload.
- Turn on branch coverage in backend/.coveragerc.

Baseline on master: 407 test files pass; frontend lines 63.3%, branches
55.3%. The app project alone (no stories) gives 61.4% lines, so stories
add about two points.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4iK9WRvZqdTHiRc9gY

* ci(coverage): include JavaScript sources in the frontend coverage report

The two audio worklets (gmeAudioWorklet.js, pico8AudioWorklet.js) are
production code that the `{ts,vue}` glob left out of the report, so they
now show at 0% instead of being omitted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4iK9WRvZqdTHiRc9gY

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 10:49:20 -05:00
..