tdd
SolidTest-driven development workflow with philosophy guide - plan → write tests → implement → validate
Testing & QA 3,795 stars
297 forks Updated 4 months ago MIT
Install
Quality Score: 86/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# /tdd - Test-Driven Development Workflow
Strict TDD workflow: tests first, then implementation.
## When to Use
- "Implement X using TDD"
- "Build this feature test-first"
- "Write tests for X then implement"
- Any feature where test coverage is critical
- Bug fixes that need regression tests
---
# TDD Philosophy
## Overview
Write the test first. Watch it fail. Write minimal code to pass.
**Core principle:** If you didn't watch the test fail, you don't know if it tests the right thing.
**Violating the letter of the rules is violating the spirit of the rules.**
## The Iron Law
```
NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST
```
Write code before the test? Delete it. Start over.
**No exceptions:**
- Don't keep it as "reference"
- Don't "adapt" it while writing tests
- Don't look at it
- Delete means delete
Implement fresh from tests. Period.
## Red-Green-Refactor
### RED - Write Failing Test
Write one minimal test showing what should happen.
**Good:**
```typescript
test('retries failed operations 3 times', async () => {
let attempts = 0;
const operation = () => {
attempts++;
if (attempts < 3) throw new Error('fail');
return 'success';
};
const result = await retryOperation(operation);
expect(result).toBe('success');
expect(attempts).toBe(3);
});
```
Clear name, tests real behavior, one thing.
**Bad:**
```typescript
test('retry works', async () => {
const mock = jest.fn()
.mockRejectedValueOnce(new Error())
.mockResolved...
Details
- Author
- parcadei
- Repository
- parcadei/Continuous-Claude-v3
- Created
- 5 months ago
- Last Updated
- 4 months ago
- Language
- Python
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
tdd
Test-driven development workflow with philosophy guide - plan → write tests → implement → validate
496 Updated 1 months ago
vibeeval Testing & QA Listed
tdd
Test-Driven Development workflow - write tests first, then implementation
335 Updated today
aiskillstore Testing & QA Listed
tdd
Test-driven development discipline. Write the failing test first, then Red-Green-Refactor, one test at a time, minimal code to pass, test behavior not implementation. Use when implementing a feature or fixing a bug test-first in JavaScript/TypeScript or Python.
0 Updated 6 days ago
HermeticOrmus AI & Automation Featured
tdd-workflow
Test-Driven Development workflow principles. RED-GREEN-REFACTOR cycle.
39,350 Updated today
sickn33 AI & Automation Solid
tdd-workflow
Test-Driven Development workflow principles. RED-GREEN-REFACTOR cycle.
27,705 Updated today
davila7