#!/bin/bash

SRC_DIR=$(python -c "import os; print os.path.dirname(os.path.realpath('$0'))")

cd $SRC_DIR/tests/unit
nosetests --exe --with-coverage --cover-package oiopy --cover-erase --cover-branches --cover-html --cover-html-dir=$SRC_DIR/cover$@
rvalue=$?
rm -f .coverage
cd -
exit $rvalue
