Code Review
/
functest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Print the real testcase duration
[functest.git]
/
run_unit_tests.sh
diff --git
a/run_unit_tests.sh
b/run_unit_tests.sh
index
5167d78
..
9780de7
100755
(executable)
--- a/
run_unit_tests.sh
+++ b/
run_unit_tests.sh
@@
-5,7
+5,7
@@
set -o pipefail
# Either Workspace is set (CI)
if [ -z $WORKSPACE ]
then
# Either Workspace is set (CI)
if [ -z $WORKSPACE ]
then
- WORKSPACE=
"."
+ WORKSPACE=
`pwd`
fi
fi
@@
-24,18
+24,17
@@
pip install --upgrade pip
pip install -r $WORKSPACE/test-requirements.txt
pip install $WORKSPACE
pip install -r $WORKSPACE/test-requirements.txt
pip install $WORKSPACE
+#install releng
+rm -rf releng-unittests
+git clone --depth 1 https://gerrit.opnfv.org/gerrit/releng releng-unittests
+pip install releng-unittests/modules/
+rm -fr releng-unittests
+
export CONFIG_FUNCTEST_YAML=$(pwd)/functest/ci/config_functest.yaml
export CONFIG_FUNCTEST_YAML=$(pwd)/functest/ci/config_functest.yaml
-# unit tests
-# TODO: remove cover-erase
-# To be deleted when all functest packages will be listed
nosetests --with-xunit \
--with-coverage \
nosetests --with-xunit \
--with-coverage \
- --cover-erase \
--cover-tests \
--cover-tests \
- --cover-package=functest.cli \
- --cover-package=functest.core.testcase_base \
- --cover-package=functest.opnfv_tests.sdn.odl.odl \
- --cover-package=functest.utils \
+ --cover-package=functest \
--cover-xml \
--cover-html \
--log-config=$(pwd)/functest/tests/unit/test_logging.ini \
--cover-xml \
--cover-html \
--log-config=$(pwd)/functest/tests/unit/test_logging.ini \