Add k6 performance tests for NCMP
[cps.git] / k6-tests / README.md
1 # k6 tests
2
3 [k6](https://k6.io/) is used for performance tests.
4 k6 tests are written in JavaScript.
5
6 ## k6 installation
7 Follow the instructions in the [k6 installation guide](https://grafana.com/docs/k6/latest/set-up/install-k6/)
8 to get started.
9
10 ## Running the k6 test suites
11 Simply run the main script. (The script assumes k6 and docker-compose have been installed).
12 ```shell
13 ./run-k6-tests.sh
14 ```
15
16 ## Running k6 tests manually
17 Before running tests, ensure CPS/NCMP is running:
18 ```shell
19 docker-compose -f docker-compose/docker-compose.yml --profile dmi-stub up
20 ```
21
22 To run an individual test from command line, use
23 ```shell
24 k6 run ncmp/1-create-cmhandles.js
25 ```