tdd
Test-driven development — crear tests antes del código de producción
SKILL.md.opencode/skills/tdd/SKILL.md
GitHubWhat I do
- Guía para implementar Test-Driven Development (TDD)
- Ciclo Red-Green-Refactor
- Crear tests antes del código de producción
- Asegurar que el código pase todos los tests
When to use me
Use this when:
- Building new features test-first
- User mentions "red-green-refactor"
- Wanting integration tests
- Fixing bugs with test coverage
- Improving existing test suites
TDD Cycle
- Red: Escribir un test que falle
- Green: Escribir el código mínimo para que pase
- Refactor: Limpiar el código manteniendo los tests verdes
Project Context
- Framework: Vitest
- E2E: Playwright
- Run tests:
pnpm test:unit - Coverage: Aim for meaningful coverage, not 100%