Writing Tests

How to write a Kiro Crew backend test that has NO side effects and does not flake. Use when adding, editing, reviewing, or debugging a pytest test in the Kiro Crew source repo: which conftest is under your file, what leaks (temp dirs, the real data home, ~/.kiro, cron, threads, child processes), how to tell which of the six flake classes you have and where each one's fix is written, and the cross-platform traps on macOS/Linux/Windows and arm64. Also covers diagnosing a residue failure and keeping the parallel suite fast.

kirodotdev 2e892fb 30.4 KB Updated

File contents

kirodotdev/kirocrew/tree/main/src/kiro_crew/builtin_skills/kirocrew-dev/writing-tests commit 2e892fbc1b

Frequently asked questions

npx skillmds@latest add kirodotdev/writing-tests