tree: 4dab0ccdf0901ec7975d469ad1ab7a743b24eec0 [path history] [tgz]
  1. ncmp/
  2. once-off-test/
  3. resources/
  4. install-deps.sh
  5. README.md
  6. run-k6-tests.sh
  7. setup.sh
  8. teardown.sh
k6-tests/README.md

k6 tests

k6 is used for performance tests. k6 tests are written in JavaScript.

k6 installation

Follow the instructions in the build from source guide to get started.

Running the k6 test suites

These tests measure the system capabilities as per requirements. There are two test profiles can be run with either: kpi or endurance. Simply run the main script. (The script assumes k6 and the relevant docker-compose have been installed).

./run-k6-tests.sh kpi

Running k6 tests manually

Before running tests, ensure CPS/NCMP is running:

docker-compose -f docker-compose/docker-compose.yml --profile dmi-stub up

To run an individual test from command line, use

k6 run ncmp/ncmp-test-runner.js