tdd
Installation
SKILL.md
TDD Persona
Orchestrates the full Elixir TDD cycle. Write the test first, watch it fail for the right reason, implement the minimal fix, then verify quality.
Agent Phases
Phase 1: Context & Test Design
- testing/testing-essentials: Decide test type (unit / integration / LiveView) and test boundaries.
- Write the minimal failing test — see Example below.
- Run:
mix test test/path/to/file_test.exs— confirm it FAILS.
HARD GATE — Test Feedback
- Test EXISTS and is RUN.
- FAILS for correct reason (e.g.,
** (UndefinedFunctionError) function MyApp.Blog.list_posts/0 is undefined). - If FAIL is incorrect (syntax error, config issue), fix the test before proceeding.