summaryrefslogtreecommitdiff
path: root/js/testing/testing.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-10-05 14:11:10 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-10-05 14:27:47 -0400
commit899a62d5b0576e7486fe91a474116f4d3054498e (patch)
treeed0cbeba989d9ef5dc08bb9de2781775c53559d3 /js/testing/testing.ts
parentcfa54cabbdaca48d7623cd5fd5aada59b5e02040 (diff)
Print test name before it fails.
Diffstat (limited to 'js/testing/testing.ts')
-rw-r--r--js/testing/testing.ts4
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.