This directory contains the load testing framework for StrellerMinds-Frontend, built with k6.
- Docker and Docker Compose
- Node.js (for local app execution)
script.js: The main k6 load testing script defining scenarios and thresholds.docker-compose.yml: Infrastructure setup for InfluxDB, Grafana, and k6.
Ensure your Next.js application is running locally or target a deployed environment.
npm run dev
# App should be available at http://localhost:3000If you have k6 installed locally:
k6 run script.jsTo run the tests and view metrics in Grafana:
docker-compose up- Grafana Dashboard: http://localhost:3001
- InfluxDB: http://localhost:8086
The load tests are automatically triggered via GitHub Actions on pull requests to the main branch. See .github/workflows/load-test.yml.