rust-tests

Community

Master Rust tests: unit, integration, Axum.

Authorpatrickhaahr
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Solves the problem of designing and validating robust Rust test suites (unit, integration, and doc tests) for Axum-based services.

Core Features & Use Cases

  • Unit tests colocated with code (mod tests) to test private logic and ensure quick feedback.
  • Integration tests in the tests/ directory to validate public APIs and crate boundaries.
  • Doc tests embedded in code examples to demonstrate usage and verify examples run as tests.
  • Async HTTP testing patterns for Axum/Tower apps using tower::ServiceExt::oneshot for fast, deterministic requests.
  • Test organization guidance and best practices for isolating tests and avoiding global state.
  • Use Case: When building a Rust library or AXUM service, use this Skill to design robust test suites that catch regressions quickly.

Quick Start

Run cargo test to execute all Rust tests (unit, integration, and doc tests) and verify Axum route handlers, enabling fast feedback.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: rust-tests
Download link: https://github.com/patrickhaahr/dotfiles/archive/main.zip#rust-tests

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.