Skip to content

simonberner/k6-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Performance Testing with k6 - A Starter Project

This is a simple starter project which can be cloned to start performance testing with k6. It is currently based on k6 v0.52.0.

Setup

  • Install node.js on the machine -> see here
  • Install k6 on the machine -> see here
  • Clone this repo

How to run

  1. Build the test.ts with: npm run build
  2. Run the protocol test with: npm run testp
  3. Run the browser test with: npm run testb

Current issues ⚠️

Check the issues page to get an overview over the open issues I am currently struggling with or are in the making/backlog for this project.

Test APIs

Testing Essentials

Test Types

Test Levels

Hybrid Testing

As browser based testing with a lot of virtual users is resource-intensive, it may make sense to combine testing on the protocol (http/backend) level and on the browser (frontend) and go with a hybrid approach. Here is an example how this can be achieved.

Browser-Level Tests

Test Reporting

  • All about how k6 emits metrics from a test-run and reports them, can be read up here.

Resources

About

Performance Testing with k6

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published