mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
281d913a73
If run_tests is called with the -C flag, a cover/ directory is created with a detailed coverage report in HTML.
34 lines
468 B
Bash
Executable File
34 lines
468 B
Bash
Executable File
#!/bin/sh
|
|
|
|
OPTS='--all-modules '
|
|
|
|
die() {
|
|
echo Error: "$@"
|
|
exit 1
|
|
}
|
|
|
|
COVER_OPTS="--with-coverage --cover-package=svtplay_dl"
|
|
|
|
while [ "$#" -gt 0 ]; do
|
|
case $1 in
|
|
-c|--coverage)
|
|
OPTS="$OPTS $COVER_OPTS"
|
|
;;
|
|
-C|--coverage-html)
|
|
OPTS="$OPTS $COVER_OPTS --cover-html"
|
|
;;
|
|
-v|--verbose)
|
|
OPTS="$OPTS --verbose"
|
|
;;
|
|
-*)
|
|
die "Unknown option: '$1'"
|
|
;;
|
|
*)
|
|
die "Unknown argument: '$1'"
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
PYTHONPATH=lib nosetests $OPTS
|