summaryrefslogtreecommitdiffstats
path: root/csit/README.md
diff options
context:
space:
mode:
authorRuslan Kashapov <ruslan.kashapov@pantheon.tech>2021-02-23 10:08:00 +0200
committerRuslan Kashapov <ruslan.kashapov@pantheon.tech>2021-02-23 10:43:01 +0200
commitaad224026765d4b39ac9dde3c30f138dd426f897 (patch)
treec24972bc22a02f2f2308437361c3c38f901c6c85 /csit/README.md
parent861ecab596c548d77cc18f1581a992159ada82ee (diff)
Introduce CPS integration testing (CSIT)
Issue-ID: CPS-188 Change-Id: I4a225da73587d5276f302b05a0729d1127caddd9 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Diffstat (limited to 'csit/README.md')
-rw-r--r--csit/README.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/csit/README.md b/csit/README.md
new file mode 100644
index 0000000000..31a59e3284
--- /dev/null
+++ b/csit/README.md
@@ -0,0 +1,34 @@
+## Continuous System and Integration Testing (CSIT) for CPS
+
+The directory structure:
+
+- **plans/** contains testing plans, each sub-folder represents a separate test plan, contains processed subsequently:
+ _startup.sh_ (serves docker containers startup), _testplan.txt_ (lists test-suits), _teardown.sh_ (serves docker containers stopping and images removal)
+- **scripts/** contains shell scripts used on tests executions
+- **tests/** contains test suits which are processed by folder name (relative to _tests_ folder) taken from _testplan.txt_
+
+Test suits are executed using Robots framework.
+
+### Running on local environment
+
+Prerequisites:
+- docker
+- python + pip
+
+```bash
+sudo apt install python3-pip
+```
+
+The Robot framework and required python packages will be installed on first execution.
+
+Build a docker image (see also [docker-compose readme](../docker-compose/README.md) ):
+
+```bash
+mvn clean package -Dmaven.test.skip=true -Dnexus.repository= -Pcps-xnf-docker
+```
+
+Execute test from current folder:
+```bash
+./run-project-csit.sh
+```
+ \ No newline at end of file