Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 52 lines (42 sloc) 693 Bytes
#!/bin/bash
args=("$@")
num_args=${#args[@]}
index=0
suite='shop'
coverage=false
documentation=false
while [ "$index" -lt "$num_args" ]
do
case "${args[$index]}" in
"--with-docs")
documentation=true
;;
"--with-coverage")
coverage=true
;;
*)
suite="shop.${args[$index]}"
esac
let "index = $index + 1"
done
if [ $coverage == true ]; then
pushd .
cd tests/testapp
coverage run manage.py test $suite
coverage html
x-www-browser htmlcov/index.html
popd
else
# the default case...
pushd .
cd tests/testapp
python manage.py test $suite
popd
fi
if [ $documentation == true ]; then
pushd .
cd docs/
make html
x-www-browser _build/html/index.html
popd
fi
Something went wrong with that request. Please try again.