anki/tools/tests.sh
2012-12-21 16:51:59 +09:00

16 lines
255 B
Bash
Executable File

#!/bin/bash
if [ -d 'locale' ]; then
dir=..
else
dir=.
fi
if [ x$coverage != x ]; then
args="--with-coverage"
else
args=""
echo "Call with coverage=1 to run coverage tests"
fi
(cd $dir && nosetests -vs $args --cover-package=anki $@)