Repository navigation
Add frontend coverage: vitest --coverage uploaded as its own Codecov flag - #150
Conversation
… Codecov flag coverage.yml only ever measured the Rust backend (src-tauri) — the frontend's vitest.config.ts already had a coverage block and @vitest/coverage-v8 installed, but nothing in CI ran it, so the Codecov App had no frontend data to report on at all. - New `frontend` job in coverage.yml: Node-only (no Tauri/Rust setup), runs `npm run test:coverage` (already an existing script) and uploads coverage/lcov.info under the `frontend` flag. - Renamed the existing job to `rust` and tagged its upload with the `rust` flag, so the two languages report as separate components instead of one number that mixes their very different testability. - codecov.yml: declared both flags with carryforward (a docs/scripts-only change skips both jobs via coverage.yml's paths-ignore, so a flag with no fresh upload should keep its last known number, not show as dropping to 0%), and fixed the file's own comments which described Rust-only coverage. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BCypCuViyQDKGWxWspXKs2
Important Pullfrog covered this run's model usage.
|
|
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## main #150 +/- ##
===========================================
- Coverage 65.49% 42.03% -23.46%
===========================================
Files 13 299 +286
Lines 3428 19848 +16420
Branches 0 4904 +4904
===========================================
+ Hits 2245 8343 +6098
- Misses 1183 10508 +9325
- Partials 0 997 +997
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|




Summary
coverage.ymlonly ever measured the Rust backend (src-tauri) — the frontend'svitest.config.tsalready had a coverage block and@vitest/coverage-v8installed, but nothing in CI ran it, so the Codecov App had no frontend data to report on at all. It only displays what gets uploaded to it; it doesn't generate coverage itself.frontendjob incoverage.yml: Node-only (no Tauri/Rust setup), runsnpm run test:coverage(already an existing script) and uploadscoverage/lcov.infounder thefrontendflag.rustand tagged its upload with therustflag, so the two languages report as separate components instead of one number that mixes their very different testability.codecov.yml: declared both flags withcarryforward(a docs/scripts-only change skips both jobs viacoverage.yml'spaths-ignore, so a flag with no fresh upload should keep its last known number, not show as dropping to 0%), and fixed the file's own comments, which described Rust-only coverage.Test plan
npm run test:coverage— runs clean locally, producescoverage/lcov.infoyaml.safe_load)🤖 Generated with Claude Code
https://claude.ai/code/session_01BCypCuViyQDKGWxWspXKs2
Generated by Claude Code