nextest-targeted-testing

使用它可以通过“cargo nextest”快速运行 Rust 套件,开始有针对性并扩展到完全 CI 平价。

📖 中文导读:使用它可以通过“cargo nextest”快速运行 Rust 套件,开始有针对性并扩展到完全 CI 平价。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: nextest-targeted-testing description: Use this to run the Rust suite quickly with cargo nextest, starting targeted and widening to full CI parity.

Fast loop

  • Rust-only (CI-like profile): npm run test:rust

Target a subset

NPM passes args through after --:

  • Filter by substring (common case):

    • npm run test:rust -- <substring>
  • If you need exact names, list tests:

    • cargo nextest list --cargo-profile ci
  • If you need test binary args (e.g., --nocapture):

    • cargo nextest run --cargo-profile ci <filter> -- --nocapture

Strategy

  • Start as narrow as possible (one failing test), then widen.
  • After fixing the immediate issue, run the full suite:
    • npm test (Rust + UI)
    • npm run smoke

Policy

  • Do NOT use cargo test in this repo.