Files
zulip/tools/test-all
Tim Abbott 39e79271e2 test-all: Run frontend tests after backend tests.
When the backend is failing, the frontend often fails in much less
clear ways (e.g. timing out), so it's generally more useful to run the
backend tests first.

(imported from commit 36ac862ad1dbb21e32c0f44ba135c3c29bbea2f5)
2013-04-02 16:27:13 -04:00

24 lines
431 B
Bash
Executable File

#!/bin/bash -e
cd "$(dirname "$0")"/..
function run {
desc="$1"
shift
echo "Running $desc"
if ! "$@"; then
printf "\n\e[31;1mFAILED\e[0m $desc\n"
exit 1
else
echo
fi
}
run 'clean repo' ./tools/clean-repo
run 'lint checkers' ./tools/check-all
run 'server tests' ./tools/test-backend
run 'web client tests' ./zephyr/tests/frontend/run
printf '\n\e[32mAll OK!\e[0m\n'