# Nextest Targeted Testing

> Use this to run the Rust suite quickly with `cargo nextest`, starting targeted and widening to full CI parity.

- Skill: `majiayu000/nextest-targeted-testing` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/nextest-targeted-testing`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/nextest-targeted-testing/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/nextest-targeted-testing

---


## 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.

