Api testing

From vspo-lab/vspo-portal · View interactive version

Api testing is an AI agent skill from the GitHub repository vspo-lab/vspo-portal. Build API client tests with Vitest and MockHandler. Validate OpenAPI contract compliance with table-driven tests and minimal mocks.

How to use this skill

Skill file

Trigger

Execution Checklist

  1. Read docs/testing/api-testing.md
  2. Enumerate normal and error cases in a table-driven format
  3. Use MockHandler to stub external API responses — no real HTTP calls in unit tests
  4. Verify Result<T, AppError> return values (both .ok and .err paths)
  5. Test retry behavior for retryable errors (5xx, network failures)

Reference Documents

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.