#!/bin/bash

MINCOVERAGE=93
SCRIPTPATH=$(readlink -f "$0")
TESTDIR=`dirname $SCRIPTPATH`
BASEDIR=$TESTDIR/..
cd $BASEDIR || exit 1

coverage erase || exit 1
for i in $TESTDIR/unit/test_*py $TESTDIR/integration/experimental_api_test_app.py; do
    TESTCMD="coverage run -a --source $BASEDIR/faucet $i"
    echo $TESTCMD
    PYTHONPATH=$BASEDIR $TESTCMD || exit 1
done
coverage report -m --fail-under=$MINCOVERAGE || exit 1

#!/bin/bash

MINCOVERAGE=92
SCRIPTPATH=$(readlink -f "$0")
TESTDIR=`dirname $SCRIPTPATH`
BASEDIR=$TESTDIR/..
cd $BASEDIR || exit 1

coverage erase || exit 1
for i in $TESTDIR/unit/test_*py $TESTDIR/integration/experimental_api_test_app.py; do
    TESTCMD="coverage run -a --source $BASEDIR/faucet $i"
    echo $TESTCMD
    PYTHONPATH=$BASEDIR $TESTCMD || exit 1
done
coverage report -m --fail-under=$MINCOVERAGE || exit 1

Reduce min coverage to 92.
Reduce min coverage to 92.
