What problem does it solve? Rust developers often struggle to structure comprehensive test suites that cover unit logic, async code, error paths, and edge cases while maintaining high coverage. This Skill provides proven patterns for writing reliable Rust tests using the standard test harness plus ecosystem crates like rstest, proptest, and mockall. ## Core Features & Use Cases - TDD Workflow Guidance: Step-by-step RED-GREEN-REFACTOR cycle with concrete Rust examples using todo!() placeholders and #[cfg(test)] modules. - Full Testing Stack Coverage: Patterns for unit tests, integration tests in tests/, async tests with #[tokio::test], doc tests, parameterized tests with rstest, property-based tests with proptest, and mocking with mockall. - Coverage and CI Integration: Commands for cargo-llvm-cov with threshold enforcement and a ready-to-use GitHub Actions workflow including fmt, clippy, tests, and coverage gates. - Use Case: When adding a new feature to a Rust crate, use this Skill to write a failing test first, mock repository traits with mockall, validate inputs with proptest strategies, and enforce 80% line coverage in CI. ## Quick Start Ask the assistant to write tests for a Rust function or module following TDD, for example: write unit tests with rstest cases and mockall mocks for my UserService.