Testing Patterns
Reference guide of testing principles covering the test pyramid, AAA structure, and mocking strategies for reliable suites.
- CCM score
- 39 of 100
- skills.sh installs
- 218
- GitHub stars
- 8.2K
- last updated
- Jun 3, 2026
Own this skill? Claim it
What it does
- Covers the test pyramid, AAA pattern, test type selection, unit and integration principles, mocking, naming, and test data
- Includes tables for what to unit test versus skip, setup and teardown phases, and stub, spy, mock, and fake types
- Recommends mocking external APIs, time, and network while avoiding mocks of the code under test and in-memory stores
- Designed for developers writing unit or integration tests and choosing frameworks or mocking approaches
Install
$ npx -y skills add vudovn/ag-kit --skill testing-patterns -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Testing Patterns
Principles for reliable test suites.
1. Testing Pyramid
/\ E2E (Few)
/ \ Critical flows
/----\
/ \ Integration (Some)
/--------\ API, DB queries
/ \
/------------\ Unit (Many)
Functions, classes
2. AAA Pattern
| Step | Purpose |
|---|---|
| Arrange | Set up test data |
| Act | Execute code under test |
| Assert | Verify outcome |
3. Test Type Selection
When to Use Each
| Type | Best For | Speed |
|---|---|---|
| Unit | Pure functions, logic | Fast (<100ms) |
| Integration | API, DB, services | Medium |
| E2E | Critical user flows | Slow |
4. Unit Test Principles
Good Unit Tests
| Principle | Meaning |
|---|---|
| Fast | < 100ms each |
| Isolated | No external deps |
| Repeatable | Same result always |
| Self-checking | No manual verification |
| Timely | Written with code |
What to Unit Test
Details
- Repository
- github.com/vudovn/ag-kit
- Category
- Testing & QA
- First seen
- Jun 3, 2026
Questions
What does the testing-patterns skill do?
testing-patterns gives an agent principles for reliable test suites, covering the testing pyramid, the AAA pattern, unit and integration tests, mocking strategies and test data. It applies when writing unit tests, integration tests, choosing testing frameworks or implementing mocking strategies.
How do I install the testing-patterns skill?
Run npx -y skills add vudovn/ag-kit --skill testing-patterns -y in your project to install testing-patterns. Once installed, the agent can use testing-patterns guidance when you write or review tests.
Which tools does the testing-patterns skill use?
testing-patterns is allowed to use Read, Write, Edit, Glob, Grep and Bash. Those are the tools its SKILL.md lists, so the agent can read and change test files and run test commands from the project.
Where does testing-patterns stand in the Testing & QA category?
testing-patterns is listed in the Testing & QA category on Claude Marketplaces, next to tdd, test-driven-development, webapp-testing, migrate-to-shoehorn and break-ui. Its own focus is general testing principles, from unit tests through mocking and test data.
More from vudovn/ag-kit
All 30- Tailwind Patterns216
- Api Patterns215
- Deployment Procedures214
- Performance Profiling214
- Behavioral Modes213
- Python Patterns207
- Parallel Agents204
- Documentation Templates200
- Seo Fundamentals200
- Frontend Design493
- Mobile Design427
- Powershell Windows425
- Code Review Checklist339
- Webapp Testing334
- Clean Code317
- Systematic Debugging298
- Game Development282
- Intelligent Routing274
- Database Design272
- Mcp Builder244
- App Builder243
- Red Team Tactics237
- Nodejs Best Practices235
- Architecture234
Similar to Testing Patterns
More Testing & QApython-testing-patternswshobson/agents42.2K installsComprehensive pytest guide covering fixtures, mocking, parameterization, and test-driven development workflows for Python.
unit-testing-frameworkaj-geddes/useful-ai-prompts637 installsStructured guidance for writing unit tests with Jest, pytest, JUnit, or RSpec, following the AAA pattern.
designing-testscloudai-x/claude-workflow-v2159 installsStructured testing strategy skill covering unit, integration, and E2E layers with framework picks per language.
Testing Anti-Patternsbobmatnyc/claude-mpm-skills398 installsAuthoritative guide for avoiding testing anti-patterns, covering mock misuse, test-only production code, and incomplete mocks.
mocking-stubbingaj-geddes/useful-ai-prompts435 installsStructured guide for isolating unit tests with mocks, stubs, spies, and test doubles across Jest, unittest.mock, and Mockito.
python-testingmindrally/skills1.2K installsPytest-focused testing guidance covering unit, integration, property-based, and mocking practices for Python.