You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 28, 2020. It is now read-only.
for TEST_SETTINGS_MODULE in "${TEST_SETTINGS_MODULES[@]}"
do
if [ "$1" = "--coverage" ]
then
COMMAND="coverage run -a --source=candidates,cached_counts,tasks,moderation_queue,elections --branch manage.py test --nologcapture --noinput --settings=$TEST_SETTINGS_MODULE"
else
COMMAND="./manage.py test --nologcapture --noinput --settings=$TEST_SETTINGS_MODULE"
fi
echo Running: $COMMAND
$COMMAND
update_exit_code
done
if [ "$1" = "--coverage" ]
then
coverage html
fi
# If any test failed, make sure we output an error message in red at
# the end of the test run, just in case the test failures from the
# core tests went off the top of the terminal:
if [ $EXIT_CODE != 0 ]
then
echo "$(tput setaf 1)Tests failed.$(tput sgr0)"
fi
# And now exit with 0 if all tests succeeded, or otherwise with the