puppeteer: Mention about docs and screeshots on failure.

This commit is contained in:
Dinesh 2020-09-05 13:25:49 +00:00 committed by Steve Howell
parent 42b1ed23a9
commit f2b3afcd56
1 changed files with 5 additions and 1 deletions

View File

@ -89,11 +89,15 @@ def run_tests(files: Iterable[str], external_host: str) -> None:
ret = run_tests()[0] ret = run_tests()[0]
if ret != 0: if ret != 0:
print(""" print("""
The Puppeteer frontend tests failed! Please report and ask for help in chat.zulip.org""", file=sys.stderr) The Puppeteer frontend tests failed! For help debugging, read:
https://zulip.readthedocs.io/en/latest/testing/testing-with-puppeteer.html
or report and ask for help in chat.zulip.org""", file=sys.stderr)
if os.environ.get("CIRCLECI"): if os.environ.get("CIRCLECI"):
print("", file=sys.stderr) print("", file=sys.stderr)
print("In CircleCI, the Artifacts tab contains screenshots of the failure.", file=sys.stderr) print("In CircleCI, the Artifacts tab contains screenshots of the failure.", file=sys.stderr)
print("", file=sys.stderr) print("", file=sys.stderr)
else:
print("It's also worthy to see screenshots generated on failure stored under var/puppeteer/*.png")
sys.exit(ret) sys.exit(ret)
external_host = "zulipdev.com:9981" external_host = "zulipdev.com:9981"