Skip to content

feat(cargo): add cargo nextest support with failures-only output#107

Merged
pszymkowiak merged 1 commit intortk-ai:masterfrom
ilaborie:feat/cargo_nextest
Feb 15, 2026
Merged

feat(cargo): add cargo nextest support with failures-only output#107
pszymkowiak merged 1 commit intortk-ai:masterfrom
ilaborie:feat/cargo_nextest

Conversation

@ilaborie
Copy link
Contributor

@ilaborie ilaborie commented Feb 13, 2026

Summary

  • Add token-optimized filtering for cargo nextest output (90%+ reduction)
  • Strip compilation noise, PASS lines, and post-summary recaps; show only failure details and compact summary
  • Extract flush_failure_block helper to DRY up failure block collection (was repeated 4 times)

Closes #106

Test plan

  • Unit tests for all-pass, mixed failures, compilation-only, verbose mode, empty input
  • cargo fmt --all --check && cargo clippy --all-targets && cargo test passes
  • Manual test with rtk cargo nextest run on a real project

🤖 Generated with Claude Code

@pszymkowiak
Copy link
Collaborator

thank you for the PR please rebase and add cargo nextest run in the hook.

Add token-optimized filtering for `cargo nextest` output: strip
compilation noise, PASS lines, and post-summary recaps; show only
failure details and a compact summary. Extract flush_failure_block
helper to DRY up failure block collection (was repeated 4 times).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ilaborie
Copy link
Contributor Author

Done, I've rebase & update the hooks rtk-rewrite.sh, and rtk-suggest.sh
(commit amended)

@pszymkowiak pszymkowiak merged commit 68fd570 into rtk-ai:master Feb 15, 2026
2 checks passed
ahundt added a commit to ahundt/rtk that referenced this pull request Feb 16, 2026
Merged from upstream/master:
- feat(gain): colored dashboard with efficiency meter and impact bars (rtk-ai#129)
- refactor(init): add upsert_rtk_block for idempotent CLAUDE.md management (rtk-ai#123)
- feat(cargo): add cargo nextest support with failures-only output (rtk-ai#107)
- docs: version references to 0.16.0/0.18.0 in README, ARCHITECTURE, CHANGELOG
- ci: add validate-docs workflow

Conflict resolution in src/init.rs:
- Kept RtkBlockUpsert enum and upsert_rtk_block() from upstream
- Kept patch_instruction_file() from current branch (for @RTK.md references)
- Both features coexist: upsert_rtk_block for legacy --claude-md mode,
  patch_instruction_file for default @RTK.md reference mode

All 688 tests pass.
ahundt added a commit to ahundt/rtk that referenced this pull request Feb 23, 2026
Merged from upstream/master:
- feat(gain): colored dashboard with efficiency meter and impact bars (rtk-ai#129)
- refactor(init): add upsert_rtk_block for idempotent CLAUDE.md management (rtk-ai#123)
- feat(cargo): add cargo nextest support with failures-only output (rtk-ai#107)
- docs: version references to 0.16.0/0.18.0 in README, ARCHITECTURE, CHANGELOG
- ci: add validate-docs workflow

Conflict resolution in src/init.rs:
- Kept RtkBlockUpsert enum and upsert_rtk_block() from upstream
- Kept patch_instruction_file() from current branch (for @RTK.md references)
- Both features coexist: upsert_rtk_block for legacy --claude-md mode,
  patch_instruction_file for default @RTK.md reference mode

All 688 tests pass.
ahundt pushed a commit to ahundt/rtk that referenced this pull request Feb 23, 2026
…-ai#107)

Add token-optimized filtering for `cargo nextest` output: strip
compilation noise, PASS lines, and post-summary recaps; show only
failure details and a compact summary. Extract flush_failure_block
helper to DRY up failure block collection (was repeated 4 times).

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.

Add cargo nextest support with failures-only output

2 participants