What problem does it solve?
Rust developers often struggle with writing consistent, maintainable tests that follow community best practices, leading to flaky test suites, low code coverage, and undetected bugs slipping into production.
Core Features & Use Cases
- TDD Workflow Support: Step-by-step RED-GREEN-REFACTOR cycle tailored for Rust, with concrete code examples to guide test-first development.
- Full Test Pattern Coverage: Guidance for unit tests, integration tests, async tests, property-based testing with proptest, and dependency mocking with mockall.
- Coverage & CI Integration: Instructions for measuring test coverage with cargo-llvm-cov and integrating test pipelines into GitHub Actions to enforce quality gates.
- Use Case: A Rust backend developer can use this skill to implement TDD for a new authentication module, write async tests for database interactions, and set up CI to enforce 80% test coverage automatically.
Quick Start
Use the rust-testing skill to write a complete set of unit and integration tests for your Rust crate following TDD best practices.