Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

node tests: Show coverage link when we regress coverage.

Steve Howell81b6583d28ef
diff --git a/tools/test-js-with-node b/tools/test-js-with-node
index fcefc3d301f..6ad5f4dd9cc 100755
--- a/tools/test-js-with-node
+++ b/tools/test-js-with-node
@@ -341,12 +341,12 @@ if options.coverage and ret == 0:
if problems_encountered:
ret = 1
+ reports_location = f"http://{get_dev_host()}/node-coverage/index.html"
+ print()
+ print("View coverage reports at " + CYAN + reports_location + ENDC)
+
print()
if ret == 0:
- if options.coverage:
- reports_location = f'http://{get_dev_host()}/node-coverage/index.html'
- print('View coverage reports at ' + CYAN + reports_location + ENDC)
-
print(GREEN + "Test(s) passed. SUCCESS!" + ENDC)
else:
print(BOLDRED + "FAIL - Test(s) failed" + ENDC)