From a238795823b5ca81ade4dcdfb5de577e9447b743 Mon Sep 17 00:00:00 2001 From: Wyatt Hoodes Date: Tue, 2 Jul 2019 13:03:53 -1000 Subject: [PATCH] run_casper: Add error output regarding Casper artifacts in CircleCI. --- frontend_tests/run-casper | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend_tests/run-casper b/frontend_tests/run-casper index 346b5fe62f..9e40938994 100755 --- a/frontend_tests/run-casper +++ b/frontend_tests/run-casper @@ -110,8 +110,11 @@ def run_tests(files: Iterable[str], external_host: str) -> None: if ret != 0: print(""" The Casper frontend tests failed! For help debugging, read: - https://zulip.readthedocs.io/en/latest/testing/testing-with-casper.html -""", file=sys.stderr) + https://zulip.readthedocs.io/en/latest/testing/testing-with-casper.html""", 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)