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:
parent
ca1e45404c
commit
d9770a2698
25
run-tests.sh
25
run-tests.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user