From 899a62d5b0576e7486fe91a474116f4d3054498e Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 5 Oct 2018 14:11:10 -0400 Subject: [PATCH] Print test name before it fails. --- js/testing/testing.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/testing/testing.ts b/js/testing/testing.ts index ee2ab1456a..1e2f4c4164 100644 --- a/js/testing/testing.ts +++ b/js/testing/testing.ts @@ -72,6 +72,7 @@ async function runTests() { for (let i = 0; i < tests.length; i++) { const { fn, name } = tests[i]; let result = green_ok(); + console.log("test", name); try { await fn(); passed++; @@ -83,7 +84,8 @@ async function runTests() { break; } } - console.log("test", name, "...", result); + // TODO Do this on the same line as test name is printed. + console.log("...", result); } // TODO counts for ignored , measured, filtered.