Skip to content

Latest commit

 

History

History
 
 

loadtest-k6

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Typescript k6 load test for Aptos services

See https://github.com/grafana/k6-template-typescript

Prerequisites

Installation

Install dependencies

yarn install

Running the test

To run a test written in TypeScript, we first have to transpile the TypeScript code into JavaScript and bundle the project

yarn start

This command creates the final test files to the ./dist folder.

Once that is done, we can run our script the same way we usually do, for instance:

k6 run dist/${YOUR_TEST}-test.js