Merge "Added test cases for running the Python Tests included with SNAPS."
[functest.git] / run_unit_tests.sh
index e050418..ecd57d8 100755 (executable)
@@ -41,21 +41,20 @@ virtualenv $WORKSPACE/functest_venv
 source $WORKSPACE/functest_venv/bin/activate
 
 # install python packages
-easy_install -U setuptools
-easy_install -U pip
-pip install -r $WORKSPACE/docker/requirements.pip
-pip install -e $WORKSPACE
-
-python $WORKSPACE/setup.py develop
+sudo apt-get install -y build-essential python-dev python-pip
+pip install --upgrade pip
+pip install -r $WORKSPACE/test-requirements.txt
+pip install $WORKSPACE
 
+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-package=functest.core.TestCasesBase \
-         --cover-package=functest.testcases.Controllers.ODL.OpenDaylightTesting \
+         --cover-package=functest.core.testcase_base \
+         --cover-package=functest.opnfv_tests.sdn.odl.odl \
          --cover-xml \
          --cover-html \
          functest/tests/unit