What problem does it solve?
Rust developers often struggle to implement reliable, maintainable test suites that follow industry best practices, leading to flaky tests, low code coverage, and undetected bugs in production.
Core Features & Use Cases
- TDD Workflow Support: Step-by-step guidance for the RED-GREEN-REFACTOR cycle tailored to Rust projects.
- Full Test Pattern Coverage: Includes examples and instructions for unit tests, integration tests, async tests, property-based testing with proptest, and mocking with mockall.
- Coverage & CI Integration: Provides setup steps for cargo-llvm-cov coverage tracking and GitHub Actions pipelines to enforce test quality standards.
- Use Case: A Rust backend developer can use this skill to implement a complete test suite for a new API service, including mocked database interactions, async endpoint tests, and CI-enforced coverage thresholds.
Quick Start
Use the rust-testing skill to write a full set of unit and integration tests for your new Rust user authentication module following TDD best practices.