testing-patterns

Installation
SKILL.md

Testing Patterns

TDD Workflow

Follow the Red-Green-Refactor cycle for every unit of behavior.

Red → Green → Refactor
  1. Red — Write a failing test that describes the expected behavior.
  2. Green — Write the minimum code to make the test pass.
  3. Refactor — Clean up the implementation without changing behavior. Tests stay green.

Never skip the Red step. If you write code before the test, you don't know if the test actually verifies anything.

Test Structure — Arrange, Act, Assert

Every test should have three clearly separated sections.

Related skills
Installs
6
First Seen
Mar 9, 2026