X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=csit%2FREADME.md;h=baa636bab48150ece68917823e8792909cbac875;hb=a7dc9162808bf65ead4b7482d5cd3c22b5751e59;hp=31a59e328493aba15744db7c4009bd86512afbf5;hpb=257b6cba072010dd24f1890d70b5ee08fea1d81b;p=cps.git diff --git a/csit/README.md b/csit/README.md index 31a59e328..baa636bab 100644 --- a/csit/README.md +++ b/csit/README.md @@ -1,3 +1,23 @@ + + ## Continuous System and Integration Testing (CSIT) for CPS The directory structure: @@ -11,24 +31,41 @@ Test suits are executed using Robots framework. ### Running on local environment -Prerequisites: +Prerequisites: - docker - python + pip +- virtualenv + +```bash +sudo apt install python3 python3-pip virtualenv +``` +Add an alias in the ```.bashrc``` file for pip3 to be pip at the end of the file.
+This file will be present on the home directory of the Ubuntu system. ```bash -sudo apt install python3-pip +alias pip=pip3 +``` + +Now load the ```.bashrc``` file. +```bash +. .bashrc ``` 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) ): +Navigate to cps project directory +```bash +cd ~//cps +``` + +Build a docker image (see also [docker-compose readme](../docker-compose/README.md) ) from your cps directory: ```bash -mvn clean package -Dmaven.test.skip=true -Dnexus.repository= -Pcps-xnf-docker +mvn clean install -Dmaven.test.skip=true -Ddocker.repository.push= ``` -Execute test from current folder: +Execute test from current cps folder: ```bash -./run-project-csit.sh +./csit/run-project-csit.sh ``` - \ No newline at end of file +