rust-testing

Codify TDD-driven unit, integration, async, and property-based Rust tests.

Updated Mar 21, 2026
One-click install
npx skills add https://github.com/hieuck/Pro5ChromeManager --skill rust-testing-hieuck
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-testing
Source: https://github.com/hieuck/Pro5ChromeManager/tree/main/skills/rust-testing
Command: npx skills add https://github.com/hieuck/Pro5ChromeManager --skill rust-testing-hieuck

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Comprehensive Rust testing patterns for writing reliable, maintainable tests following TDD methodology.

Core Features & Use Cases

  • Unit tests, integration tests, async testing, and property-based testing guided by a TDD workflow.
  • Mocking and test organization with patterns like rstest and proptest to improve coverage and reliability.
  • Benchmarking and code coverage practices using Criterion and cargo-llvm-cov to ensure robust interfaces and performance.

Quick Start

Run cargo test to start validating tests and begin the TDD workflow.

Frequently Asked Questions about rust-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure Rust testing for unit and integration tests following TDD?

Rust testing patterns following TDD organize unit and integration tests into separate modules. This approach applies test-driven workflows from simple modules to large crates, detailing test organization and parameterized tests to ensure reliable interfaces.

What's the best way to mock dependencies in Rust async tests?

Mocking in Rust async tests utilizes patterns like mockall to stub dependencies. This ensures reliable test execution by isolating components during TDD workflows, addressing common Rust testing challenges with robust mocking practices.

Does property-based testing in Rust work with parameterized tests?

Property-based testing in Rust works with parameterized tests using tools like proptest and rstest. This combination improves coverage and reliability by generating diverse test cases within a TDD-driven workflow.

How do I measure Rust code coverage and set up CI practices?

Rust code coverage is measured using cargo-llvm-cov to meet coverage targets. Benchmarking practices with Criterion ensure robust performance, integrating seamlessly into CI practices to validate tests continuously.

Can I use rstest and proptest for Rust integration tests in large crates?

Yes, rstest and proptest are suitable for Rust integration tests in large crates. They provide parameterized and property-based testing patterns that improve coverage and reliability across complex Rust project architectures.