rust-testing - Rust Testing Patterns
Rust testing patterns including unit tests, integration tests, async testing, property-based testing, mocking, and coverage following TDD methodology.
Tags
Updated: 2026-09-24Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Write unit and integration tests
- Implement property-based testing
- Mock dependencies using mockall
- Check code coverage with llvm-cov
- Create performance benchmarks
- Write executable documentation tests
Inputs
- Target Rust source code
- Rust project files
Outputs
- Test results
- Coverage reports
- Benchmark results
Requirements
- Rust toolchain and cargo
- cargo-llvm-cov tool
