Skip to content

feat: add --test-all flag to force testing all packages - #6

Merged
vanandrew merged 2 commits into
mainfrom
feat/test-all-flag
Apr 14, 2026
Merged

feat: add --test-all flag to force testing all packages#6
vanandrew merged 2 commits into
mainfrom
feat/test-all-flag

Conversation

@vanandrew

Copy link
Copy Markdown
Owner

Summary

  • Adds --test-all CLI flag that skips git diff entirely and reports all workspace packages as affected
  • Exposes test-all input on the GitHub composite action
  • When --test-all is set, no git operations are performed — only the lock file is parsed to enumerate packages
  • --exclude still works with --test-all to filter out specific packages

Usage

CLI:

difftrace --test-all --lock-file uv.lock --json

Action:

- uses: vanandrew/difftrace@main
  with:
    test-all: "true"

Test plan

  • Parser test: --test-all flag parses and defaults to False
  • --test-all returns all packages without calling git
  • --test-all combined with --exclude filters correctly
  • --test-all excludes virtual root packages
  • Existing tests unaffected (126 passing)
  • Lint, format, and type checks pass

🤖 Generated with Claude Code

Allows skipping git diff entirely and reporting all workspace packages
as affected. Useful for manual dispatch or scheduled CI runs that need
to test everything regardless of changes.
@codecov

codecov Bot commented Apr 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.38%. Comparing base (a1a6363) to head (88bf136).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #6      +/-   ##
==========================================
+ Coverage   96.31%   96.38%   +0.06%     
==========================================
  Files           6        6              
  Lines         326      332       +6     
==========================================
+ Hits          314      320       +6     
  Misses         12       12              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vanandrew
vanandrew force-pushed the feat/test-all-flag branch from e13d5a6 to 320ff33 Compare April 14, 2026 06:48
@vanandrew
vanandrew merged commit e811058 into main Apr 14, 2026
20 checks passed
@vanandrew
vanandrew deleted the feat/test-all-flag branch April 22, 2026 19:32
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