8 echo "Running unit tests..."
10 # Creating virtual environment
11 if [ ! -z $VIRTUAL_ENV ]; then
17 source $venv/bin/activate
19 # Install requirements
20 pip install -r $SCRIPTDIR/requirements.txt
21 pip install -r $SCRIPTDIR/test-requirements.txt
23 find . -type f -name "*.pyc" -delete
25 nosetests --with-xunit \
28 --cover-package=$SCRIPTDIR/opnfv_testapi/cmd \
29 --cover-package=$SCRIPTDIR/opnfv_testapi/common \
30 --cover-package=$SCRIPTDIR/opnfv_testapi/resources \
31 --cover-package=$SCRIPTDIR/opnfv_testapi/router \
34 $SCRIPTDIR/opnfv_testapi/tests