Codeship Status for qualityshepherd/k6-example

K6 Example

Load/performance testing examples using K6

Install

assumes git and node...

  1. install k6 on your machine

Run Tests

NOTE: please do not thank me by running these tests and killing my server :) Change the url in the tests to a server you own, or use k6's

  1. run 'em all: npm test
  2. run smoke test: npm run smoke
  3. run them manually: k6 run smokeTest.js
  4. understand results

Run on CI

  1. install k6
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61
echo "deb https://dl.bintray.com/loadimpact/deb stable main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install k6
  1. run tests: npm test

          /\      |‾‾| /‾‾/   /‾‾/
     /\  /  \     |  |/  /   /  /
    /  \/    \    |     (   /   ‾‾\
   /          \   |  |\  \ |  (‾)  |
  / __________ \  |__| \__\ \_____/ .io