Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 903 Bytes

README.md

File metadata and controls

27 lines (23 loc) · 903 Bytes

k6 meet Keycloak

The porpuse of this repository is to load test Keycloak functionality with k6.
Each isolated functionality is separated in a file.

Install

Please see installation instructions.

Run load test

To run a load test you have to run a file. You can do this by

$ k6 run webserver.js

CI

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

Envariable

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.