https://github.com/Im5tu/template-k6
A K6 Performance Test Suite Template
https://github.com/Im5tu/template-k6
Last synced: about 1 month ago
JSON representation
A K6 Performance Test Suite Template
- Host: GitHub
- URL: https://github.com/Im5tu/template-k6
- Owner: Im5tu
- License: mit
- Archived: true
- Created: 2020-10-10T20:08:45.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-10-10T21:04:01.000Z (over 4 years ago)
- Last Synced: 2024-11-10T02:34:10.844Z (7 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-k6 - Im5tu/template-k6 - A K6 Performance Test Suite Template. (Examples/Templates)
README
# K6 Performance Test Suite Template
This is a simple a K6 performance test suite template. Some of the common functionality that's required for tracking errors has already been taken care of for you, allowing you to concentrate on building your performance tests.This repository assumes that you have a basic knowledge of docker, javascript and k6.
## Build & Run
If you're on Windows, simply set the variables for `K6_HOSTENV` and `K6_SCRIPT` to your target values and run `.\run.ps1`. Otherwise, see the instructions below for a manual build and run.
### Build
```bash
docker build -t test .
```### Run
```bash
docker run -it -e K6_HOSTENV=qa -e K6_SCRIPT=TEMPLATE.js test
```