Introduce CPS integration testing (CSIT)
[cps.git] / csit / README.md
1 ## Continuous System and Integration Testing (CSIT) for CPS
2
3 The directory structure:
4
5 - **plans/** contains testing plans, each sub-folder represents a separate test plan, contains processed subsequently:
6     _startup.sh_ (serves docker containers startup), _testplan.txt_ (lists test-suits), _teardown.sh_ (serves docker containers stopping and images removal)
7 - **scripts/** contains shell scripts used on tests executions
8 - **tests/** contains test suits which are processed by folder name (relative to _tests_ folder) taken from _testplan.txt_
9
10 Test suits are executed using Robots framework.
11
12 ### Running on local environment
13
14 Prerequisites: 
15 - docker
16 - python + pip
17
18 ```bash
19 sudo apt install python3-pip 
20 ```
21
22 The Robot framework and required python packages will be installed on first execution.
23
24 Build a docker image (see also [docker-compose readme](../docker-compose/README.md) ):
25
26 ```bash
27 mvn clean package -Dmaven.test.skip=true -Dnexus.repository= -Pcps-xnf-docker
28 ```
29
30 Execute test from current folder:
31 ```bash
32 ./run-project-csit.sh
33 ```
34