8 echo "Running unit tests..."
10 # Creating virtual environment
11 virtualenv $SCRIPTDIR/testapi_venv
12 source $SCRIPTDIR/testapi_venv/bin/activate
14 # Install requirements
15 pip install -r $SCRIPTDIR/requirements.txt
17 pip install nose>=1.3.1
20 find . -type f -name "*.pyc" -delete
22 nosetests --with-xunit \
25 --cover-package=$SCRIPTDIR/opnfv_testapi/cmd \
26 --cover-package=$SCRIPTDIR/opnfv_testapi/common \
27 --cover-package=$SCRIPTDIR/opnfv_testapi/resources \
28 --cover-package=$SCRIPTDIR/opnfv_testapi/router \
31 $SCRIPTDIR/opnfv_testapi/tests