Description
Add scripts/k6/stream-api.js (or TS) and README instructions for load testing /health and stream list.
Requirements and context
- Baseline RPS goals documented.
- No secrets in script.
Suggested execution
- Fork the repository and create a branch (example below).
- Implement changes in StreamPay-Backend (TypeScript / Express per
package.json).
- Keep the service secure, tested, and documented; prefer small, reviewable PRs.
git checkout -b test/k6-load-backend
Implementation targets
scripts/k6/ under backend.
- Example env for host URL.
Tests and validation
-
Document how to interpret results.
-
Run npm test and npm run lint in StreamPay-Backend.
-
Cover edge cases; include test output and brief security notes in the PR description.
Guidelines
- Target minimum 95% test coverage on new or changed backend code (or justify gaps).
- Clear documentation (OpenAPI / README / inline docs as specified).
- Timeframe: 96 hours from assignment.
Example commit message
test(backend): k6 load test script for API
Description
Add
scripts/k6/stream-api.js(or TS) and README instructions for load testing/healthand stream list.Requirements and context
Suggested execution
package.json).Implementation targets
scripts/k6/under backend.Tests and validation
Document how to interpret results.
Run
npm testandnpm run lintinStreamPay-Backend.Cover edge cases; include test output and brief security notes in the PR description.
Guidelines
Example commit message