aaa-pattern

Installation
SKILL.md

AAA Pattern (Arrange-Act-Assert)

Overview

Every test has three phases: Arrange, Act, Assert. Keep them separate.

Clear structure makes tests readable, maintainable, and debuggable. When phases blur together, tests become confusing.

When to Use

  • Writing any test
  • Test logic is hard to follow
  • Unclear what's being tested
  • Multiple actions or assertions mixed together

The Iron Rule

EVERY test must have clearly separated Arrange, Act, and Assert phases.
Related skills
Installs
26
GitHub Stars
10
First Seen
Jan 22, 2026