Rust testing

From huiali/rust-skills · View interactive version

Rust testing is an AI agent skill from the GitHub repository huiali/rust-skills. Use this skill for detailed, production-ready guidance in this Rust domain.

How to use this skill

Skill file

Rust Testing Skill

Use this skill for detailed, production-ready guidance in this Rust domain.

Core Question

How do we keep tests deterministic, fast, and meaningful?

Solution Patterns

Workflow

  1. Reproduce and isolate the issue with a minimal failing case.
  2. Choose the smallest safe design that satisfies constraints.
  3. Implement with explicit ownership, errors, and boundaries.
  4. Verify with tests, linting, and scenario-specific checks.

Review Checklist

Common Pitfalls

Verification Commands

cargo test
cargo test -- --nocapture
cargo bench
cargo nextest run

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.