You should either install k6
globally or docker on your local machine to run the script.
# run in global k8
smoke: bash run.sh -v 1 -d 5 -c src/get-spaces-photo.js
load: bash run.sh -v 100 -d 60 -c src/get-spaces-photo.js
Spike: bash run.sh -v 200/300/400/500 -d 60 -c src/get-spaces-photo.js
Soak: bash run.sh -v 20 -d 600 -c src/get-spaces-photo.js
bash run.sh -v 1 -d 5 -c src/get-spaces-photo.js
# run in doc**k**er
bash run.sh -v 1 -d 5 -c -k src/get-spaces-photo.js
# override the api endpoint
ENDPOINT="https://example.com" bash run.sh -v 1 -d 5 -c src/get-spaces-photo.js
- c: file name of test script
- v: numbers of virtual user
- d: duration
- ENDPOINT: API Endpoint