1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 07:44:48 -05:00

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++) { for (let i = 0; i < tests.length; i++) {
const { fn, name } = tests[i]; const { fn, name } = tests[i];
let result = green_ok(); let result = green_ok();
console.log("test", name);
try { try {
await fn(); await fn();
passed++; passed++;
@ -83,7 +84,8 @@ async function runTests() {
break; 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. // TODO counts for ignored , measured, filtered.