rust-testing

Automate Rust unit, integration, doc, and property-based tests with cargo test.

Updated Nov 30, 2025
One-click install
npx skills add https://github.com/AutumnsGrove/GroveScout --skill rust-testing
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: rust-testing
Source: https://github.com/AutumnsGrove/GroveScout/tree/main/.claude/skills/rust-testing
Command: npx skills add https://github.com/AutumnsGrove/GroveScout --skill rust-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rust testing boilerplate and tooling can be verbose and error-prone. This skill consolidates writing and running Rust tests (unit, integration, doc, and property-based) into a streamlined workflow, reducing friction and improving test coverage.

Core Features & Use Cases

  • Unit Tests: Inline tests within modules to validate small units of code.
  • Integration & Doc Tests: End-to-end and documentation-exposed tests to ensure API surface correctness.
  • Property-based Testing: Property-driven tests to explore edge cases with randomized inputs.
  • Async Testing & Mocking: Support for tokio-based tests and test doubles to validate asynchronous code paths.

Quick Start

Run cargo test in your Rust project to execute your complete test suite.

Frequently Asked Questions about rust-testing

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

FAQPage Schema
How do I structure unit tests and integration tests in Rust?▼

Rust testing typically organizes unit tests within modules and integration tests in a separate tests directory. This skill automates structuring test infrastructure, validating code paths across modules, and ensuring API surface correctness.

Does Rust support property-based testing with randomized inputs?▼

Property-based testing in Rust validates edge cases using randomized inputs. This skill automates property-driven test generation, allowing developers to explore edge cases without manually defining every test scenario.

How do I test asynchronous code in Rust using tokio?▼

Async testing in Rust with tokio validates asynchronous code paths. This skill provides support for tokio-based tests and test doubles, ensuring asynchronous correctness and validating complex async workflows.

What is the best way to run doc tests in a Rust project?▼

Doc tests in Rust execute code examples found in documentation comments to ensure API surface correctness. This skill streamlines running cargo test commands to execute end-to-end and documentation-exposed tests.

How do I use mocking and test attributes to validate Rust code paths?▼

Mocking and test attributes in Rust allow validating specific code paths with test doubles. This skill provides examples for mocking and coverage, supporting test attributes to structure and validate infrastructure.