tests.sh 383 Bytes
Newer Older
1
2
#!/usr/bin/env sh

3
4
set -e

5
6
export SYNNEFO_SETTINGS_DIR='/tmp/snf-test-settings'

7
APPS="api db logic plankton quotas vmapi im quotaholder_app helpdesk"
8
TEST="$(which snf-manage) test $APPS --failfast --traceback --settings=synnefo.settings.test"
9
10
11
12
13
14
15
16

if coverage >/dev/null 2>&1; then
  coverage run $TEST
  coverage report --include=snf-*
else
  echo "coverage not installed"
  $TEST
fi