To run environment specific tests, we will use the following commands.
- For create todo tests:
k6 run todos-testing.js
- For create todo and fetch tests:
k6 run create-and-fetch-todo-http-request.js
- For create todo and fetch tests with Trends:
k6 run create-todo-http-request.js
- For create todo tests with Cloud output:
export K6_CLOUD_TOKEN=<your-token>
k6 run --out cloud create-todo-http-request.js
This repo is built following a tutorial published on CircleCI blog under the CircleCI Guest Writer Program.
- Blog post: API Performance testing with k6
- Author's GitHub profile: Waweru Mwaura
Join a team of freelance writers and write about your favorite technology topics for the CircleCI blog. Read more about the program here.
Reviewers: Ron Powell, Stanley Ndagi