rust-testing - Rust Testing Patterns
Rust testing patterns including unit, integration, async, property-based testing, mocking, and coverage following TDD methodology.
Tags
Updated: 2026-09-24Typical Outputs
What this skill does
- Write unit tests
- Write integration tests
- Write async tests
- Implement property-based tests
- Mock dependencies
- Create benchmark tests
- Check test coverage
Inputs
- Target Rust source code
- Rust project files
- Test input configuration
Outputs
- Test execution results
- Coverage reports
- Benchmark reports
Requirements
- Rust toolchain and Cargo
- cargo-llvm-cov
- Tokio async runtime
- rstest crate
- proptest crate
- mockall crate
- criterion crate
