Docker environment (based on official loadimpact/k6 docker hub repository) required to run K6 load testing tool.
- Docker version 18.06 or later
- Docker compose version 1.22 or later
- An editor or IDE
Note: OS recommendation - Linux Ubuntu based.
- K6
- Influxdb
- Grafana
1.Clone this repository from GitHub.
2.Build, start the docker images from your terminal:
docker-compose build
make start
3.Make sure that you have created necessary test scripts in scripts
folder.
4.Edit/extend command (make tests
) in Makefile
5.Start your load tests:
make tests
6.In order to use visual report, please open in your browser next url: http://localhost:3000 and create/configure necessary dashboard.
After application will start (make start
) and in order to get shell access inside influxdb/grafana container you can run following commands:
make ssh-influxdb
make ssh-grafana
Note : Please use exit
command in order to return from container's shell to local shell.
In case you edited Dockerfile or other environment configuration you'll need to build containers again using next commands:
make stop
docker-compose build
make start
Please use next make commands in order to start and stop environment:
make start
make stop
make start
make stop
make restart
make ssh-influxdb
make ssh-grafana
make info
make tests
make logs-influxdb
make logs-grafana
make logs-k6
etc....
Notes: Please see more commands in Makefile
- For new feature development, fork
develop
branch into a new branch with one of the two patterns:feature/{ticketNo}
- Commit often, and write descriptive commit messages, so its easier to follow steps taken when reviewing.
- Push this branch to the repo and create pull request into
develop
to get feedback, with the formatfeature/{ticketNo}
- "Short descriptive title of Jira task". - Iterate as needed.
- Make sure that "All checks have passed" on CircleCI(or another one in case you are not using CircleCI) and status is green.
- When PR is approved, it will be squashed & merged, into
develop
.