Skip to content

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

Open
ilaborie wants to merge 1 commit intortk-ai:masterfrom
ilaborie:feat/cargo_nextest
Open

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

Conversation

@ilaborie
Copy link

@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
Author

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

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