1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

run-tests.sh: Add support for coverage report

This requires the coverage python module. You enable it by calling
run-tests.sh with the --coverage (-c) flag.
This commit is contained in:
Olof Johansson 2013-03-12 19:47:19 +01:00
parent ca1e45404c
commit d9770a2698

View File

@ -1,2 +1,25 @@
#!/bin/sh
PYTHONPATH=lib nosetests --all-modules
OPTS='--all-modules '
die() {
echo Error: "$@"
exit 1
}
while [ "$#" -gt 0 ]; do
case $1 in
-c|--coverage)
OPTS="$OPTS --with-coverage"
;;
-*)
die "Unknown option: '$1'"
;;
*)
die "Unknown argument: '$1'"
;;
esac
shift
done
PYTHONPATH=lib nosetests $OPTS