SuperAPI AI Directory

testing-patterns

Testing & quality

View repository

Updated 10-15 21:11

About this 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

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