Back to skills
SKILL.md
Testing Patterns
ASecurityTesting patterns and principles. Unit, integration, mocking strategies.
- 508 stars
- 0 votes
- 0 copies
- 8 views
- Added September 7, 2026
Works with
Security analysis
100/100Pro scans all 12 files and shows the line behind each finding
npx -y skills add Dokhacgiakhoa/antigravity-ide --skill testing-patterns --agent claude-codeAre you the author of Testing Patterns?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/dokhacgiakhoa-testing-patterns-agent-skills-4-vibe-coding-cli)---
name: testing-patterns
description: Testing patterns and principles. Unit, integration, mocking strategies.
category: security
version: 4.1.0-fractal
layer: master-skill
---
# 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
## 🧠 Knowledge Modules (Fractal Skills)
### 1. [When to Use Each](./sub-skills/when-to-use-each.md)
### 2. [Good Unit Tests](./sub-skills/good-unit-tests.md)
### 3. [What to Unit Test](./sub-skills/what-to-unit-test.md)
### 4. [What to Test](./sub-skills/what-to-test.md)
### 5. [Setup/Teardown](./sub-skills/setupteardown.md)
### 6. [When to Mock](./sub-skills/when-to-mock.md)
### 7. [Mock Types](./sub-skills/mock-types.md)
### 8. [Naming](./sub-skills/naming.md)
### 9. [Grouping](./sub-skills/grouping.md)
### 10. [Strategies](./sub-skills/strategies.md)
### 11. [Principles](./sub-skills/principles.md)
Files in this skill
- SKILL.md
- sub-skills/good-unit-tests.md
- sub-skills/grouping.md
- sub-skills/mock-types.md
- sub-skills/naming.md
- sub-skills/principles.md
- sub-skills/setupteardown.md
- sub-skills/strategies.md
- sub-skills/what-to-test.md
- sub-skills/what-to-unit-test.md
- sub-skills/when-to-mock.md
- sub-skills/when-to-use-each.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.