File: runtests.sh

package info (click to toggle)
python-django-mptt 0.13.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,256 kB
  • sloc: python: 4,964; javascript: 317; makefile: 119; sh: 15
file content (16 lines) | stat: -rwxr-xr-x 351 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
set -e
export PYTHONPATH="./"
export DJANGO_SETTINGS_MODULE='settings'

if [ `which coverage` ] ; then
    export COVERAGE='coverage run'
else
    export COVERAGE='python'
fi

$COVERAGE -m django test --traceback --settings=$DJANGO_SETTINGS_MODULE --verbosity 2 --pythonpath="../" "$@"

if [ `which coverage` ] ; then
    coverage report
fi