diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-10-19 13:39:22 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-10-19 13:39:23 +0000 |
commit | 81029a5ad95469526166dbb114c86a3ab52d4c5f (patch) | |
tree | 2db232458411284c730ca9bab191c51a8ee1ade1 /run_unit_tests.sh | |
parent | bcf9ace74a24c8f974b5aaa108fd85a918bb5fc9 (diff) | |
parent | 87ddf690c47d38659d9b126bb56aa7de18d22ef8 (diff) |
Merge "Add unittests dir"
Diffstat (limited to 'run_unit_tests.sh')
-rwxr-xr-x | run_unit_tests.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/run_unit_tests.sh b/run_unit_tests.sh new file mode 100755 index 00000000..a37cd3d9 --- /dev/null +++ b/run_unit_tests.sh @@ -0,0 +1,25 @@ +#!/bin/bash +set -o errexit +set -o pipefail + +echo "Running unit tests..." +cd . + +# start vitual env +virtualenv ./functest_venv +source ./functest_venv/bin/activate + +# install python packages +easy_install -U setuptools +easy_install -U pip +pip install -r docker/requirements.pip +pip install -e . + +# unit tests +nosetests --with-xunit \ + --with-coverage \ + --cover-package=functest\ + --cover-xml \ + unit_tests + +deactivate |