Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 20 lines (19 sloc) 465 Bytes
#!/bin/bash
cd tests
echo "setting up test environment (this might take a while)..."
python bootstrap.py >/dev/null 2>&1
./bin/buildout >/dev/null 2>&1
echo "running tests"
if [ $1 ]; then
suite="cms.$1"
else
suite='cms'
fi
./bin/coverage run ./testapp/manage.py test $suite
retcode=$?
echo "post test actions..."
./bin/coverage xml --omit=parts,/usr/,eggs > /dev/null
./bin/coverage html --omit=parts,/usr/,eggs > /dev/null
cd ..
echo "done"
exit $retcode