Patterns for testing code effectively. Use when breaking dependencies for testability, adding tests to existing code, understanding unfamiliar code through characterization tests, or deciding how to structure tests. Covers seams, dependency injection, test doubles, and safe refactoring techniques from Michael Feathers.
$npx -y skills add joelhooks/swarm-tools --skill testing-patternsInstalls into the current project.
Run `npx skills use "https://github.com/joelhooks/swarm-tools" --skill "joelhooks/swarm-tools/testing-patterns"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/joelhooks/swarm-tools" that are relevant to the current task. Run `npx skills add "https://github.com/joelhooks/swarm-tools"` and select the relevant skills, then follow their instructions.