tree: 95666ea08779c635d05c8187427eb23461a2286b [path history] [tgz]
  1. data/
  2. plans/
  3. tests/
  4. install-robotframework.sh
  5. prepare-csit.sh
  6. pylibs.txt
  7. README.md
  8. run-csit.sh
  9. run-project-csit.sh
csit/README.md

Continuous System and Integration Testing (CSIT) for NCMP-DMI-PLUGIN

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
  • virtualenv
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.

alias pip=pip3

Now load the .bashrc file.

. .bashrc

The Robot framework and required python packages will be installed on first execution.

Navigate to ncmp-dmi-plugin project directory

cd ~/<your_git_repo>/ncmp-dmi-plugin

Build a docker image (see also docker-compose readme ) from your ncmp-dmi-plugin directory:

mvn clean install -Dmaven.test.skip=true -Ddocker.repository.push=

Execute test from current ncmp-dmi-plugin folder:

./csit/run-project-csit.sh