mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
15 lines
255 B
Bash
Executable file
15 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 $@)
|