Skip to content
/ k6 Public

Playing around with K6 and Typescript

Notifications You must be signed in to change notification settings

jscarmona/k6

Repository files navigation

K6 Typescript

Test Setup

Options

Called once per run

export const options: Options = {
  vus: 1,
  iterations: 1,
  duration: '10s',
};

Life cycle stages

// 1. Init

export const setup = () => {
  // 2. Setup
};

export default (data?: ReturnType<typeof setup>) => {
  // 3. Default/Main
};

export const teardown = (data?: ReturnType<typeof setup>) => {
  // 4. Teardown
};

Init

Docs


Setup

Docs


Default/Main function

Docs


Teardown

Docs

About

Playing around with K6 and Typescript

Resources

Stars

Watchers

Forks