The porpuse of this repository is to load test Keycloak functionality with k6.
Each isolated functionality is separated in a file.
Please see installation instructions.
To run a load test you have to run a file. You can do this by
$ k6 run webserver.js
To run the load tests on a CI platform, we recommend using Docker.
You can run the same comand with Docker by
$ docker run -i loadimpact/k6 run - < webserver.js
For local testing you can use the following command to load the .env
conveniently:
$ npm run env -- k6 run webserver.js
As we load and pipe over npm, it's not recommended to use this when performing a load test.
Use the recommended way and not dotenv with npm.