From claude-resources
Testing strategy and methodology. Use when planning test strategy, choosing unit vs integration, defining mock boundaries, or fixing bugs. Pair with language-specific testing skill.
npx claudepluginhub deandum/claude-resources --plugin go-skillsThis skill uses the workspace's default tool permissions.
Tests are code. Apply same quality standards as production code.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides agent creation for Claude Code plugins with file templates, frontmatter specs (name, description, model), triggering examples, system prompts, and best practices.
Tests are code. Apply same quality standards as production code.
<lang>/testing skill)Every bug fix MUST come with a regression test. No exceptions.
| Scenario | Test Type | Approach |
|---|---|---|
| Business logic | Unit | Mock dependencies |
| Database queries | Integration | Real database |
| HTTP handlers | Unit | Mock service layer |
| Repository CRUD | Integration | Real database |
| External API calls | Unit | Mock HTTP client |
| Full API workflow | E2E | Real services |
Mock these (cross system boundaries):
Don't mock these (internal to app):
Real implementation → Fake → Stub → Mock
Use real implementations when fast enough. Fakes for complex dependencies (in-memory DB). Stubs for simple returns. Mocks only when verifying interactions.
test-integration/)| Shortcut | Reality |
|---|---|
| "I'll add tests later" | Tests after code are documentation, not design. Later means never. |
| "This is too simple to test" | Simple today becomes complex tomorrow. Test the behavior now. |
| "Mocking everything is thorough" | Over-mocking makes tests brittle and coupled to implementation. |
| "The tests pass, so the code is correct" | Tests are necessary but not sufficient. They don't catch design or security issues. |