diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-10-05 14:11:10 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-05 14:27:47 -0400 |
commit | 899a62d5b0576e7486fe91a474116f4d3054498e (patch) | |
tree | ed0cbeba989d9ef5dc08bb9de2781775c53559d3 /js | |
parent | cfa54cabbdaca48d7623cd5fd5aada59b5e02040 (diff) |
Print test name before it fails.
Diffstat (limited to 'js')
-rw-r--r-- | js/testing/testing.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/testing/testing.ts b/js/testing/testing.ts index ee2ab1456..1e2f4c416 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. |