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
19 find . -type f -name "*.pyc" -delete
21 nosetests --with-xunit \
24 --cover-package=$SCRIPTDIR/opnfv_testapi/cmd \
25 --cover-package=$SCRIPTDIR/opnfv_testapi/common \
26 --cover-package=$SCRIPTDIR/opnfv_testapi/resources \
27 --cover-package=$SCRIPTDIR/opnfv_testapi/router \
30 $SCRIPTDIR/opnfv_testapi/tests