tests: Make puppeteer tests run in full suites and CircleCI.

This commit is contained in:
Dinesh 2020-03-27 01:30:05 +05:30 committed by Tim Abbott
parent c8268865dc
commit d429b7145e
3 changed files with 9 additions and 0 deletions

View File

@ -27,6 +27,8 @@ PYTHONWARNINGS=ignore ./tools/check-frontend-i18n --no-generate
#
# ./tools/test-js-with-casper --xunit-export
./tools/test-js-with-puppeteer
# NB: Everything here should be in `tools/test-all`. If there's a
# reason not to run it there, it should be there as a comment
# explaining why.

View File

@ -72,6 +72,7 @@ run ./tools/test-js-with-node
run ./manage.py makemessages --locale en
run env PYTHONWARNINGS=ignore ./tools/check-capitalization --no-generate
run env PYTHONWARNINGS=ignore ./tools/check-frontend-i18n --no-generate
run ./tools/test-js-with-puppeteer $FORCEARG
run ./tools/test-js-with-casper $FORCEARG
printf '\n\e[32mAll OK!\e[0m\n'

View File

@ -79,6 +79,12 @@ def run_tests(files: Iterable[str], external_host: str) -> None:
ret = 1
ret = run_tests()
if ret != 0:
print("""
The Puppeteer frontend tests failed! Please report and ask for help in chat.zulip.org""", file=sys.stderr)
if os.environ.get("CIRCLECI"):
print("", file=sys.stderr)
print("In CircleCI, the Artifacts tab contains screenshots of the failure.", file=sys.stderr)
print("", file=sys.stderr)
sys.exit(ret)
external_host = "zulipdev.com:9981"