From 1f056ae738f6e0984803630e0380d80efebf8dc3 Mon Sep 17 00:00:00 2001 From: Hanif Kukkalli Date: Thu, 4 Mar 2021 11:52:53 +0100 Subject: Test CSIT Integration Tests Updated README.md file Issue-ID: CPS-272 Signed-off-by: Hanif Kukkalli Change-Id: If636cc34a83e0895e148597cb3a0812953db5aae --- csit/README.md | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) (limited to 'csit') diff --git a/csit/README.md b/csit/README.md index 31a59e328..f4b6adf90 100644 --- a/csit/README.md +++ b/csit/README.md @@ -11,24 +11,41 @@ Test suits are executed using Robots framework. ### Running on local environment -Prerequisites: +Prerequisites: - docker - python + pip +- virtualenv ```bash -sudo apt install python3-pip +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 +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 -Dnexus.repository= -Pcps-xnf-docker ``` -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 + -- cgit 1.2.3-korg