mirror of https://github.com/zulip/zulip.git
tests: Make puppeteer tests run in full suites and CircleCI.
This commit is contained in:
parent
c8268865dc
commit
d429b7145e
|
@ -27,6 +27,8 @@ PYTHONWARNINGS=ignore ./tools/check-frontend-i18n --no-generate
|
||||||
#
|
#
|
||||||
# ./tools/test-js-with-casper --xunit-export
|
# ./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
|
# 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
|
# reason not to run it there, it should be there as a comment
|
||||||
# explaining why.
|
# explaining why.
|
||||||
|
|
|
@ -72,6 +72,7 @@ run ./tools/test-js-with-node
|
||||||
run ./manage.py makemessages --locale en
|
run ./manage.py makemessages --locale en
|
||||||
run env PYTHONWARNINGS=ignore ./tools/check-capitalization --no-generate
|
run env PYTHONWARNINGS=ignore ./tools/check-capitalization --no-generate
|
||||||
run env PYTHONWARNINGS=ignore ./tools/check-frontend-i18n --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
|
run ./tools/test-js-with-casper $FORCEARG
|
||||||
|
|
||||||
printf '\n\e[32mAll OK!\e[0m\n'
|
printf '\n\e[32mAll OK!\e[0m\n'
|
||||||
|
|
|
@ -79,6 +79,12 @@ def run_tests(files: Iterable[str], external_host: str) -> None:
|
||||||
ret = 1
|
ret = 1
|
||||||
ret = run_tests()
|
ret = run_tests()
|
||||||
if ret != 0:
|
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)
|
sys.exit(ret)
|
||||||
|
|
||||||
external_host = "zulipdev.com:9981"
|
external_host = "zulipdev.com:9981"
|
||||||
|
|
Loading…
Reference in New Issue