rust-test-separate

Community

Move inline Rust tests into dedicated files.

Authormaxenko
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Inline #[cfg(test)] test modules in Rust implementation files complicate readability and maintenance. This skill extracts those modules into dedicated test files while preserving hierarchy and accessible scope where possible.

Core Features & Use Cases

  • Preserves the module hierarchy so tests remain logically attached to their implementation modules.
  • Supports common Rust routing patterns (foo.rs with foo/tests.rs or foo/mod.rs with nested tests) and preserves private access where needed.
  • Reduces inline test bloat in source files and improves test organization for large crates.

Quick Start

Move inline #[cfg(test)] mod tests blocks into a separate test file following the project's module layout.

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-test-separate
Download link: https://github.com/maxenko/claude-skills/archive/main.zip#rust-test-separate

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 471,000+ vetted skills library on demand.