Home

Awesome

k6-templates

This repo contains various opinionated starter templates for k6 projects.

Common across all templates is the use of folders and multiple JavaScript files to encourage code organization:

Vanilla

This template uses built-in k6 APIs and therefore requires no external dependencies. Use this template if you prefer to use the built-in APIs over those provided by the other templates.

Httpx

This template uses the Httpx library to perform requests instead of the built-in k6/http module. Httpx caters for setting:

The template also includes an example re-usable function for performing response validation called verifyResponse.

k6chaijs

This template uses the ChaiJS library through k6chaijs to perform assertions instead of using the built-in group and check functions.