Skip to content

infinum/rails-internal-k6-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k6 template

Goal

This repository should be used as a load testing resource for Infinum teams. It should enable a project team to implement a load testing scenario without spending too much time learning the k6 tool and reinventing the wheel.

Technical contributions

  • an example k6 repository structure
    • Javascript linting support (eslint + prettier)
  • an example file/folder/class structure that supports a composable and reusable load test setup
    • a scenario which includes multiple pages
    • a page which includes multiple API calls
    • an endpoint which implements various API calls belonging to a single resource
  • basic item & collection JSON:API response parsing support for attributes and relationships
  • fetching all paginated pages
  • simple examples of holding state (e.g. IDs, tokens) between consecutive multiple requests
  • setting per request type response time thresholds

Usage

BASE_URL=https://example.com SUBJECT_ID=5 k6 run script/scenario.js

About

Internal k6 load testing template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published