test-rust

Plans Rust test suites from TEST_RUST.md catalog for unit, DB, integration & API tests.

5|Updated Dec 4, 2024
One-click install
npx skills add https://github.com/mimul/axum-rusty --skill test-rust
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-rust
Source: https://github.com/mimul/axum-rusty/tree/main/.claude/skills/test-rust
Command: npx skills add https://github.com/mimul/axum-rusty --skill test-rust

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates the manual overhead of planning and scaffolding Rust tests by automatically generating a project-wide testing strategy based on the TEST_RUST.md catalog, creating feature branches for work, and deferring code writing until human approval.

Core Features & Use Cases

  • Catalog-driven planning: Reads TEST_RUST.md (T-T-01~T-T-06) to outline unit, DB, integration, and API tests.
  • Automated branch creation: Generates and switches to a feature/test-{module} branch for isolated work.
  • Human-in-the-loop: Presents a detailed test plan for review before creating files.
  • Policy enforcement: Applies test-style and security rules from TEST_RUST.md and related docs to shape the plan.

Quick Start

Run the /test-rust command to begin analyzing your Rust project and produce a catalog-aligned test plan.

Frequently Asked Questions about test-rust

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

FAQPage Schema
How do I automate Rust test planning for domain, infra, and usecase crates?

Rust test planning can be automated by reading a project catalog to outline unit, database, integration, and API tests for domain, infra, and usecase crates. This generates a structured test strategy aligned with predefined rules before scaffolding.

What is catalog-driven test scaffolding in Rust projects?

Catalog-driven test scaffolding is a method that reads a defined test catalog to automatically outline unit, integration, and API tests. It applies test-style and security rules to shape the plan and creates isolated feature branches for test development.

How do I generate unit and integration tests in Cargo without writing boilerplate?

You can generate unit and integration tests by running an automated planning command that analyzes your Cargo project structure. It produces a detailed test plan for human review, deferring code creation until approval to ensure safety and testability.

Does automated Rust test generation work with existing security and privacy rules?

Yes, automated Rust test generation loads authoritative docs for test-style and security rules to shape the test plan. It ensures safety and privacy by enforcing these policies during planning and presenting a human review step before code creation.

Can I review a Rust test plan before the test files are actually created?

Yes, a human-in-the-loop review step presents the detailed test plan before creating any files. This ensures developers can validate the catalog-driven strategy, branch creation, and policy enforcement before test code scaffolding begins.

When should I use an automated test planning workflow for Rust?

You should use an automated test planning workflow when eliminating manual overhead for large Rust projects. It is ideal when you need to generate unit, database, integration, and API tests while strictly enforcing test-style and security policies.