Skip to content

Add frontend coverage: vitest --coverage uploaded as its own Codecov flag - #150

Merged
DianaSensei merged 1 commit into
mainfrom
frontend-coverage
Sep 17, 2026
Merged

DianaSensei merged 1 commit into
mainfrom
frontend-coverage

Conversation

@DianaSensei

Copy link
Copy Markdown
Owner

Summary

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. It only displays what gets uploaded to it; it doesn't generate coverage itself.

  • 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.

Test plan

  • npm run test:coverage — runs clean locally, produces coverage/lcov.info
  • Both workflow YAML files parse (yaml.safe_load)

🤖 Generated with Claude Code

https://claude.ai/code/session_01BCypCuViyQDKGWxWspXKs2


Generated by Claude Code

… 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
@pullfrog

pullfrog Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

Important

Pullfrog covered this run's model usage. DeepSeek Flash is fast and cheap — expect lighter work than a frontier model. This model allowance is temporary and separate from your Pullfrog plan. Connect a model-provider subscription or API key →

Pullfrog  | View workflow run | via Pullfrog | Using DeepSeek Flash (model usage covered by Pullfrog) | 𝕏

@DianaSensei
DianaSensei enabled auto-merge (squash) September 17, 2026 17:24
@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Sep 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 42.03%. Comparing base (ef21099) to head (8cf59d0).
⚠️ Report is 1 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (ef21099) and HEAD (8cf59d0). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (ef21099) HEAD (8cf59d0)
1 0
Additional details and impacted files

Impacted file tree graph

@@             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     
Flag Coverage Δ
frontend 37.14% <ø> (?)
rust 65.43% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 287 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@DianaSensei
DianaSensei merged commit 0ec4be4 into main Sep 17, 2026
19 of 20 checks passed
@DianaSensei
DianaSensei deleted the frontend-coverage branch September 17, 2026 17:33
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.

2 participants