API Client TDD Skill
Setup pattern
- •Base URL from env var (e.g., API_BASE_URL)
- •Auth token/credentials from env var (e.g., API_TOKEN)
- •Fail fast if missing.
Test pattern (per endpoint slice)
- •Arrange: prepare unique resource identifiers.
- •Act: call client method.
- •Assert: status-independent assertions (fields, invariants).
- •Cleanup: delete created resources if applicable.
Negative-path coverage
At least one of:
- •Missing/invalid auth
- •Invalid input
- •Not found
- •Conflict