Introduction to k6 load test tool
docker-compose up -d influxdb grafana
- Start a docker container with mockserver in case it is needed.
docker-compose up -d mockserver
- Configure the server with the proper expectation in the mock server, for example running an appropriate script
npm install
node mock/get-crocodiles.mock.js
- Run the load test
docker-compose run --rm k6 run /scripts/load.test.js
- Open the local Grafana and import the dashboard using the dashboard file located in grafana/k6-load-testing-results_rev3.json