testing-tdd

Guide test-driven development with Red-Green-Refactor across pytest, vitest, jest, and cargo test.

2|1|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/qte77/claude-code-plugins --skill testing-tdd-qte77
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-tdd
Source: https://github.com/qte77/claude-code-plugins/tree/main/plugins/tdd-core/skills/testing-tdd
Command: npx skills add https://github.com/qte77/claude-code-plugins --skill testing-tdd-qte77

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Writes focused, behavior-driven tests up front to guide design and reduce defects, enabling teams to adopt a strict Red-Green-Refactor cycle across any language or test framework.

Core Features & Use Cases

  • Language-agnostic guidance for test-driven development across popular frameworks (pytest, vitest, jest, cargo test, etc.).
  • Emphasizes Arrange-Act-Assert structure and anti-pattern avoidance to improve test quality.
  • Use Cases: driving feature implementation, API contracts, and edge-case validation through structured tests.

Quick Start

Describe the feature to test, write a failing test first, then implement only enough code to make it pass.

Frequently Asked Questions about testing-tdd

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

FAQPage Schema
How do I start test-driven development with pytest or jest?

To start test-driven development, describe the feature to test, write a failing behavior-driven test first, and then implement only enough code to make it pass. This enforces a strict Red-Green-Refactor cycle across frameworks like pytest and jest.

What is the Arrange-Act-Assert pattern in behavior-driven testing?

The Arrange-Act-Assert pattern structures behavior-driven tests into three phases: setting up data, executing the action, and verifying the result. This structure guides focused test-first development and helps avoid common testing anti-patterns.

Does TDD guidance work with multiple languages like Rust and JavaScript?

Yes, TDD guidance is language-agnostic and supports multiple frameworks including cargo test for Rust, vitest and jest for JavaScript, and pytest for Python. It provides workflow guidance, decision checklists, and quality gates across these environments.

How do I define testing contracts and mock strategies for edge cases?

Define testing contracts and mock strategies by providing clear feature descriptions before implementation. This drives edge-case validation through structured tests, ensuring your mock strategies align with the required behavior-driven testing outcomes.

Why use a Red-Green-Refactor cycle instead of writing tests after implementation?

Using a Red-Green-Refactor cycle writes focused tests up front to guide design and reduce defects, rather than testing after implementation. This ensures code satisfies strict testing contracts and quality gates from the start.