rust-nextest
Skill4 starsChanged 2 months agoApache-2.0View on GitHub
Select, run, diagnose, or configure Rust tests with cargo-nextest. Covers profiles, filters, resource limits, doctests, and truthful test results; not test design alone.
In this repository81 other files it gives its agents.
- agent-cli-designSkill
- agent-tool-boundariesSkill
- behavior-first-implementationSkill
- bounded-prototypeSkill
- bounded-pr-sliceSkill
- building-fdd-validationSkill
- context-efficiencySkill
- cross-language-contractsSkill
- cross-platform-agent-instructionsSkill
- design-interviewSkill
- diagnosis-loopSkill
- domain-languageSkill
- edge-cloud-syncSkill
- handoff-continuitySkill
- immutable-pr-reviewSkill
- memory-context-hygieneSkill
- module-designSkill
- orchestrateSkill
- owner-decision-gateSkill
- parallel-portfolioSkill
- pr-gate-loopSkill
- pyo3-async-lifecycleSkill
- pyo3-buffer-performanceSkill
- pyo3-free-threadingSkill
- pyo3-ownership-errorsSkill
- pyo3-wheel-releaseSkill
- python-api-typingSkill
- python-async-concurrencySkill
- python-ci-releaseSkill
- python-data-boundariesSkill
- python-packaging-environmentsSkill
- python-performanceSkill
- python-pytestSkill
- python-reviewSkill
- python-test-designSkill
- python-threading-workersSkill
- python-workflowSkill
- react-components-stateSkill
- react-performanceSkill
- repository-groundingSkill
- rust-api-designSkill
- rust-async-concurrencySkill
- rust-build-diagnosticsSkill
- rust-ci-releaseSkill
- rust-memory-layoutSkill
- rust-numerics-simdSkill
- rust-performanceSkill
- rust-protocol-codecsSkill
- rust-python-bindingsSkill
- rust-reviewSkill
- rust-storage-durabilitySkill
- rust-test-designSkill
- rust-unsafe-ffiSkill
- rust-workflowSkill
- rust-workspace-dependenciesSkill
- shadcn-react-componentsSkill
- shadcn-svelte-componentsSkill
- simplify-existing-codeSkill
- source-verificationSkill
- svelte-components-runesSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Use the repository's wrapper or documented gate before inventing an equivalent command.
- Very specific: line 23
Run doctests separately with the repository's cargo test --doc command.
- Distinctive: line 39
Use command recipes, configuration and versions, or advanced diagnostics as needed.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Rust Nextest
Use the repository's wrapper or documented gate before inventing an equivalent command. Read its flags rather than dropping inconvenient ones. This skill changes neither test requirements nor CI policy.
Resolve what will run
Inspect Cargo members/default-members/excludes, test targets and required-features, .config/nextest.toml, relevant environment overrides, toolchain, and installed cargo nextest --version. Compare the runner version with the configuration keys actually used. A recommended version is not an enforced minimum. Unsupported settings or warnings require investigation, not suppression.
Choose the changed package and the consumer tests that exercise its behavior. List the selected tests with the same features, target selection, filter, and profile before a complex run. Cargo package selection decides what is built; nextest filtersets select from that built universe. An rdeps(...) filter cannot restore packages excluded by -p.
Respect default filters and ignored/hardware suites. Do not use --ignore-default-filter or --run-ignored all just to increase counts. Check why tests were excluded and whether their prerequisites and permissions exist. Fail a gate that was expected to run tests but selected none; use --no-tests=fail where supported and preserve it in existing gates.
Run the correct configurations
Nextest's --profile ci chooses runner policy. It does not select optimized Cargo code generation; use --release or a verified --cargo-profile separately. Keep feature and package scope consistent across a comparison.
Run doctests separately with the repository's cargo test --doc command. Neither a successful nextest run nor --all-targets establishes doctest success. Excluded binding crates and external language tests also need their own path.
Distinguish benchmark smoke tests from measurements. Compatible Criterion targets can run in nextest test mode; one successful iteration proves neither speed nor statistical improvement. Current nextest also offers experimental benchmark measurement, but do not enable it by default or bypass the existing harness.
Diagnose without hiding failures
On failure, keep the first output and reproduce the smallest relevant selection. Check fixture isolation, child processes, deadlines, feature gates, and runtime flavor before broadening timeouts. A retry can gather information; it does not erase a flaky result or justify adding gate retries.
Budget build parallelism separately from test-process concurrency and each test's own workers. Use per-test weights/groups for known heavy or mutually exclusive tests instead of serializing the entire suite. Groups coordinate one nextest invocation, not another agent or CI job. Prefer per-test temporary directories and ephemeral ports where the protocol permits.
Terminate hung work through the documented timeout policy and inspect cleanup. A passing process with leaked child handles is not automatically healthy. Treat test-count reductions as a question to resolve, not a performance win.
Report
Give the exact command, packages/features, Cargo codegen profile, nextest profile, selected/run/passed/failed/skipped counts available from output, and unrun suites. Explain whether the result is focused, a PR gate, or full release evidence. Never substitute a different runner silently when nextest is unavailable.
Use command recipes, configuration and versions, or advanced diagnostics as needed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

