Re-Enable Promise testcases
[functest.git] / run_unit_tests.sh
index 917c8ee..86096fa 100755 (executable)
@@ -14,13 +14,16 @@ fi
 # ***************
 echo "Running unit tests..."
 
+sudo apt-get install -y build-essential python-dev python-pip
+sudo pip install virtualenv==15.1.0
+
 # start vitual env
 virtualenv $WORKSPACE/functest_venv
 source $WORKSPACE/functest_venv/bin/activate
 
 # install python packages
-sudo apt-get install -y build-essential python-dev python-pip
 pip install --upgrade pip
+pip install -r $WORKSPACE/requirements.txt
 pip install -r $WORKSPACE/test-requirements.txt
 pip install $WORKSPACE
 
@@ -31,21 +34,10 @@ pip install releng-unittests/modules/
 rm -fr releng-unittests
 
 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 \
-         --cover-erase \
          --cover-tests \
-         --cover-package=functest.ci \
-         --cover-package=functest.cli \
-         --cover-package=functest.core \
-         --cover-package=functest.opnfv_tests.sdn.odl.odl \
-         --cover-package=functest.opnfv_tests.vnf.ims \
-         --cover-package=functest.utils \
-         --cover-package=functest.opnfv_tests.features \
-         --cover-package=functest.opnfv_tests.openstack \
+         --cover-package=functest \
          --cover-xml \
          --cover-html \
          --log-config=$(pwd)/functest/tests/unit/test_logging.ini \