Performance testing framework for k6 demo.
- Clone this repository
- Run
yarn install
- Run
yarn build
to create a build of the source code under thedist
folder. - If run with native k6 support execute
k6 run dist/<script_name>.js
- Run
yarn run-docker
to run a sample scenario.
The tests can run directly from GA just by using the appropriate workflow load.yml under workflows. It will generate a summary.html report on GitHub if we want to visualize metrics and results. The job is triggered manually but we can set a smoke suite per PR merge.
The framework supports monitoring via Grafana and InfluxDB. Both of them are setup locally as docker containers and orchestrated via Docker Compose. To start-up monitoring
- Start them via
yarn monitor
- Go to
localhost:3000
in your browser - Navigate to
Dashboards
and thenImport
- Go to the
Import via grafana.com
form and add 2587 or find the ID of any other K6 compatible dashboard from Grafana - Run the test via
yarn run-docker
and see results being visualised.
We will use the official APIs from k6.io under here