Skip to content

ci: integrate automated code coverage reports - #147

Open
olatechy0 wants to merge 1 commit into
Core-Foundry:mainfrom
olatechy0:ci/integrate-code-coverage
Open

ci: integrate automated code coverage reports#147
olatechy0 wants to merge 1 commit into
Core-Foundry:mainfrom
olatechy0:ci/integrate-code-coverage

Conversation

@olatechy0

Copy link
Copy Markdown

Summary

Adds automated code coverage generation to the frontend CI pipeline for issue #39.

Changes

  • frontend/package.json: add @vitest/coverage-v8 (v8 provider) dev dependency and a test:coverage script (vitest run --coverage).
  • frontend/vitest.config.ts: coverage block - v8 provider, text / text-summary / lcov / html reporters, reportsDirectory: "coverage", scoped to src/**/*.{ts,tsx} (excludes *.test.* and *.d.ts).
  • .github/workflows/frontend-ci.yml: run the coverage suite and upload the report as a frontend-coverage artifact on every PR and push.

Verification

  • pnpm test:coverage runs successfully and emits coverage/lcov.info + HTML report.
  • pnpm install --frozen-lockfile passes (lockfile in sync).
  • Note: on Windows a few pre-existing Next.js teardown test failures occur with both pnpm test and pnpm test:coverage; CI runs on ubuntu and is unaffected by this change.

Closes #39

Adds automated coverage generation to the frontend CI pipeline (Core-Foundry#39):

- Add @vitest/coverage-v8 (v8 provider) configured in vitest.config.ts,
  scoped to src/ with text, text-summary, lcov, and html reporters.
- Add a test:coverage script to frontend/package.json.
- frontend-ci.yml now runs the coverage suite and uploads the report as a
  frontend-coverage artifact on every PR and push.

Coverage reports are produced for all frontend tests; the coverage output is
gitignored locally (frontend/.gitignore /coverage) and only surfaced through
the CI artifact.

Closes Core-Foundry#39
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.

ci: integrate automated code coverage reports

1 participant