Skip to content

SMOODEV-2721: th testing coverage report/diff (LCOV upload + baseline diff)#252

Merged
brentrager merged 1 commit into
mainfrom
testing-coverage-cli
Jul 25, 2026
Merged

SMOODEV-2721: th testing coverage report/diff (LCOV upload + baseline diff)#252
brentrager merged 1 commit into
mainfrom
testing-coverage-cli

Conversation

@brentrager

Copy link
Copy Markdown
Contributor

Coverage half of the testing-platform feature (pairs with SmooAI/smooai#3389 routes and SmooAI/testing#12 SDK):

  • th testing coverage report <lcov> --scope X [--branch --commit --run-id --no-files] — in-CLI LCOV parser (LF/LH preferred, DA-line fallback), per-file [lh,lf,bh,bf,fh,ff] counters capped to the API's 5000-file limit (drops detail + warns instead of 400ing), branch/commit defaulted from GitHub Actions env, POSTs to /organizations/{org}/testing/coverage.
  • th testing coverage diff --branch X --base main --format table|md — fetches latest-per-scope for both branches, renders per-scope lines/branches/functions with Δ vs base (new/gone markers); md emits the GitHub table the monorepo's sticky PR comment will post. Always exits 0 — signal, not gate.

Unit tests: lcov fixtures (LF/LH + DA-fallback, non-lcov rejection), markdown/delta rendering. cargo test -p smooai-smooth-cli testing green; the clippy expect_used hit under -D warnings is pre-existing in smooth-web's build.rs, untouched here.

🤖 Generated with Claude Code

https://claude.ai/code/session_01H9YdTv1LgxPAsYJpgu5Aak

@changeset-bot

changeset-bot Bot commented Jul 24, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6cff46c

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

…e diff

Coverage had no CLI surface: CI generates lcov per package and discards it.
Adds 'th testing coverage report <lcov> --scope X' (in-CLI LCOV parser with
DA-fallback, per-file detail capped to the API's 5000-file limit, branch/
commit defaulted from GitHub Actions env) and 'th testing coverage diff'
(latest-per-scope vs a base branch, table or GitHub-markdown output for the
sticky PR comment). Pairs with the /testing/coverage routes shipped in
SmooAI/smooai#3389.
@brentrager
brentrager force-pushed the testing-coverage-cli branch from 6519e7a to 6cff46c Compare July 24, 2026 00:05
@brentrager
brentrager merged commit d7311bf into main Jul 25, 2026
3 checks passed
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.

1 participant