summaryrefslogtreecommitdiffstats
path: root/run_unit_tests.sh
blob: a37cd3d98db222e579593f99e09fa76293787842 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
set -o errexit
set -o pipefail

echo "Running unit tests..."
cd .

# start vitual env
virtualenv ./functest_venv
source ./functest_venv/bin/activate

# install python packages
easy_install -U setuptools
easy_install -U pip
pip install -r docker/requirements.pip
pip install -e .

# unit tests
nosetests --with-xunit \
         --with-coverage \
         --cover-package=functest\
         --cover-xml \
         unit_tests

deactivate