Performance testing framework for k6 demo.
- Clone this repository
- Run
yarn install - Run
yarn buildto create a build of the source code under thedistfolder. - If run with native k6 support execute
k6 run dist/<script_name>.js - Run
yarn run-dockerto 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:3000in your browser - Navigate to
Dashboardsand thenImport - Go to the
Import via grafana.comform and add 2587 or find the ID of any other K6 compatible dashboard from Grafana - Run the test via
yarn run-dockerand see results being visualised.
We will use the official APIs from k6.io under here

