Guides ยท Engineering
API Testing Basics
Test APIs reliably
This guide covers designing API tests: unit tests for handlers, contract tests for schemas, integration tests with real dependencies, and using fixtures to keep tests stable.
- api testing
- contracts
- integration
- fixtures
- schemas
Unit and handlers
Test business logic with mocked dependencies to isolate behavior.
Contract tests
Validate request/response schemas and examples to prevent drift.
Integration paths
Test key flows against staging with real auth and data seeding.
Fixtures and data
Use repeatable fixtures and clean-up routines; avoid shared mutable data.