
Testing Patterns
A solid reference for test architecture decisions. Covers the testing pyramid, AAA pattern, and when to reach for unit vs integration vs E2E tests. The mocking section is especially practical, breaking down stubs, spies, mocks, and fakes with clear guidance on what to mock and what to leave alone. Includes tables on test organization, data strategies, and common anti-patterns like testing implementation details instead of behavior. Works well when you're setting up a new test suite or trying to clean up an existing one that's become a maintenance burden. The emphasis on tests as documentation is the right mindset.
- skills.sh installs
- 138
- GitHub stars
- 7.6K
- last updated
- Jun 3, 2026
Install
$ npx -y skills add vudovn/antigravity-kit --skill testing-patterns --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Promote your product hereReach 125k+ visitors monthlyPromote your product hereReach 125k+ visitors monthly
Agent CaffeineSponsoredClose your lid, come back to finished work
SnugSponsoredThe clipboard manager for the AI eraPromote your product hereReach 125k+ visitors monthly
WaxSponsoredBlock anything with supervision, without erasing your iPhonePromote your product hereReach 125k+ visitors monthly
knobsSponsoredSee your site on any phone, any day, in any language
Details
- Repository
- github.com/vudovn/antigravity-kit
- Category
- Testing & QA
- First seen
- Jun 3, 2026
More from vudovn/antigravity-kit
All 30- Brainstorming137
- Api Patterns131
- App Builder128
- Vulnerability Scanner127
- Deployment Procedures126
- Tailwind Patterns126
- Powershell Windows123
- I18n Localization122
- Parallel Agents122
- Plan Writing121
- Python Patterns119
- Red Team Tactics119
- Performance Profiling118
- Bash Linux116
- Behavioral Modes115
- Documentation Templates115
- Seo Fundamentals115
- Frontend Design320
- Code Review Checklist252
- Mobile Design239
- Webapp Testing212
- Clean Code197
- Systematic Debugging186
- Mcp Builder159
Recommended
More Testing & QA2
132-java-testing-integration-testingjabrena/cursor-rules-java132 java testing integration testing128skills.sh installs