Load Test Generator
When to Trigger
- •API endpoints created
- •"Test performance"
- •Before production deploy
What to Do
- •Script: Use k6 or similar; define stages (ramp up, hold, ramp down) and target VUs.
- •Requests: Hit main endpoints (GET list, POST create) with auth header; check status and optionally response shape.
- •Thresholds: e.g. p95 latency <500ms, error rate <1%; fail run if exceeded.
- •Env: Base URL and token from env; document how to run locally and in CI.
Place in tests/load/; add npm script. Remind to run against staging, not production, and to respect rate limits.