tdd

Guide developers through the Test-Driven Development cycle with framework-specific testing instructions.

87|8|Updated Apr 9, 2025
One-click install
npx skills add https://github.com/FilenCloudDienste/filen-rs --skill tdd-filenclouddienste
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/FilenCloudDienste/filen-rs/tree/main/.claude/skills/tdd
Command: npx skills add https://github.com/FilenCloudDienste/filen-rs --skill tdd-filenclouddienste

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures robust software development by enforcing a rigorous Test-Driven Development (TDD) process, catching bugs early and improving code quality.

Core Features & Use Cases

  • Guided TDD Cycle: Provides step-by-step instructions for understanding, testing, implementing, verifying, and refactoring code.
  • Framework Agnostic: Offers specific guidance for Jest, Vitest, Bun, and Rust's cargo test.
  • E2E Testing: Details best practices for Playwright (web) and Maestro (mobile).
  • Bug Fix Protocol: Mandates reproducing bugs with failing tests before fixing.
  • Use Case: When developing a new feature, follow this Skill's guidance to write failing tests first, then implement the minimum code to pass, ensuring the feature works as intended and is well-tested.

Quick Start

Follow the TDD cycle outlined in this skill to implement the new user authentication module.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I reproduce a bug with a failing test before fixing it?

Reproducing a bug with a failing test before fixing it is mandated by the Test-Driven Development cycle to ensure the exact issue is isolated. You write a specific failing test case that captures the bug, implement the minimum code to pass, and verify the fix.

What is the best way to implement Test-Driven Development for a new feature?

The best way to implement Test-Driven Development for a new feature is following a guided cycle: understand the requirements, write a failing test, implement the minimum code to pass, verify, and refactor. This ensures the feature works as intended and is well-tested.

Does this TDD guidance work with Jest, Vitest, and Bun?

Yes, this TDD guidance works with Jest, Vitest, and Bun by offering specific instructions for these frameworks. It provides framework-agnostic best practices for unit and integration testing while detailing exact steps for these JavaScript environments.

How do I write end-to-end tests for web and mobile using TDD?

To write end-to-end tests using TDD, you apply specific best practices for Playwright for web and Maestro for mobile. This integrates E2E testing into the development cycle, ensuring robust user flows are validated before implementation is considered complete.

How do I apply Test-Driven Development in Rust?

To apply Test-Driven Development in Rust, you use the standard TDD cycle alongside specific guidance for Rust's `cargo test` framework. This ensures robust and maintainable code by prioritizing meaningful test coverage and failing tests before implementation.

Why does Test-Driven Development emphasize meaningful test coverage over arbitrary metrics?

Test-Driven Development emphasizes meaningful test coverage over arbitrary metrics to ensure robust software development and improve code quality. This approach catches bugs early by enforcing a rigorous testing process rather than just chasing high coverage percentages.