From aad224026765d4b39ac9dde3c30f138dd426f897 Mon Sep 17 00:00:00 2001 From: Ruslan Kashapov Date: Tue, 23 Feb 2021 10:08:00 +0200 Subject: Introduce CPS integration testing (CSIT) Issue-ID: CPS-188 Change-Id: I4a225da73587d5276f302b05a0729d1127caddd9 Signed-off-by: Ruslan Kashapov --- csit/README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 csit/README.md (limited to 'csit/README.md') diff --git a/csit/README.md b/csit/README.md new file mode 100644 index 000000000..31a59e328 --- /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 -- cgit 1.2.3-korg