mirror of
https://github.com/denoland/deno
synced 2024-11-05 18:45:24 +00:00
Print test name before it fails.
This commit is contained in:
parent
cfa54cabbd
commit
899a62d5b0
1 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue