Testing strategy

From Xiaowen-Jiang/agent-enterprise · View interactive version

Testing strategy is an AI agent skill from the GitHub repository Xiaowen-Jiang/agent-enterprise. Create comprehensive test plans with unit, integration, and E2E test cases

How to use this skill

Skill file

Process

  1. Read the code under test — Understand inputs, outputs, and side effects
  2. Identify test boundaries — What is a unit? What needs integration testing?
  3. Map test cases — Happy path, edge cases, error cases, boundary values
  4. Write unit tests — Isolated, fast, mock external dependencies
  5. Write integration tests — Test component interactions with real dependencies
  6. Consider E2E scenarios — Full user flows that validate the system end-to-end
  7. Prioritize — Critical paths first, then edge cases

Output Format

Provide a test matrix:

| Test Name | Type | Input | Expected Output | Priority |

|-----------|------|-------|-----------------|----------|

| test_create_user_success | unit | valid user data | user object returned | P0 |

| test_create_user_duplicate_email | unit | existing email | 409 error | P0 |

| test_user_flow_signup_to_order | e2e | full flow | order created | P1 |

Then provide the actual test code.

Guidelines

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.