tdd-rust

Guide Rust projects through the Red-Green-Refactor TDD cycle.

88|6|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/FlorianBruniaux/ccboard --skill tdd-rust-florianbruniaux
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-rust
Source: https://github.com/FlorianBruniaux/ccboard/tree/main/.claude/skills/tdd-rust
Command: npx skills add https://github.com/FlorianBruniaux/ccboard --skill tdd-rust-florianbruniaux

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enforces a rigorous Test-Driven Development (TDD) workflow, ensuring code quality and maintainability by requiring tests to be written before implementation.

Core Features & Use Cases

  • TDD Enforcement: Guides users through the Red-Green-Refactor cycle.
  • Test Organization: Demonstrates best practices for unit and integration tests in Rust.
  • Fixture Management: Shows how to effectively use test fixtures for reliable testing.
  • Use Case: When developing a new Rust feature, use this Skill to ensure you write a failing test first, then the minimal code to pass, and finally refactor for clean, robust code.

Quick Start

Follow the TDD workflow for Rust by writing a failing test, implementing the minimal code to pass, and then refactoring.

Frequently Asked Questions about tdd-rust

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

FAQPage Schema
How do I practice test-driven development in Rust?

Test-driven development in Rust is practiced by following the Red-Green-Refactor cycle, writing a failing unit test first, implementing the minimal code to pass it, and then refactoring for clean code.

What is the best way to organize Rust unit and integration tests for TDD?

Organizing Rust unit and integration tests for TDD involves structuring them according to best practices, utilizing test fixtures for reliable setup, and managing property-based tests alongside standard unit tests.

How do I manage test fixtures in a Rust TDD workflow?

Managing test fixtures in a Rust TDD workflow requires establishing reliable test data setups before running the Red-Green-Refactor cycle, ensuring consistent environments for both unit and integration testing.

Can I enforce a strict TDD workflow with pre-commit checks in Rust?

You can enforce a strict TDD workflow in Rust by adhering to pre-commit checklists and using command shortcuts, ensuring tests are always written before implementation to maintain code quality.

Does Rust property-based testing fit into the standard TDD cycle?

Property-based testing fits into the standard TDD cycle by allowing you to define broad code properties as failing tests first, then implementing the minimal logic to pass them before refactoring.

Why use TDD for Rust refactoring and code quality?

Using TDD for Rust refactoring ensures code quality and maintainability by requiring comprehensive tests to be written first, providing a safety net that verifies behavior remains intact during the refactoring phase.