Print test name before it fails.

This commit is contained in:
Ryan Dahl 2018-10-05 14:11:10 -04:00
parent cfa54cabbd
commit 899a62d5b0

View file

@ -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.