Agent skill

testing-patterns

Testing patterns and principles. Unit, integration, mocking strategies.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/testing-patterns-michael-bodo-lt-mission-control

SKILL.md

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

2. Good Unit Tests

3. What to Unit Test

4. What to Test

5. Setup/Teardown

6. When to Mock

7. Mock Types

8. Naming

9. Grouping

10. Strategies

11. Principles

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results