Files
zulip/tools/test-all
Tim Abbott 9d75fd33d9 Add new test for management commands running with --help.
This test caught a few bugs where refactoring had made management
commands fail (and would have caught a few more recent ones).

Ideally we'd replace this with a more advanced test that actually
tests that the management command do something useful, but it's a
start.
2015-11-11 21:34:39 -08:00

25 lines
485 B
Bash
Executable File

#!/bin/bash -e
cd "$(dirname "$0")"/..
function run {
echo '----'
echo "Running $@"
if ! "$@"; then
printf "\n\e[31;1mFAILED\e[0m $@\n"
exit 1
else
echo
fi
}
run ./tools/clean-repo
run ./tools/lint-all
run ./tools/test-js-with-node
run ./tools/test-backend
run ./tools/test-js-with-casper
# Not running management test since it takes 40s and thus is too slow to be worth it.
# run ./tools/test-management
printf '\n\e[32mAll OK!\e[0m\n'