Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print out the failed tests after the summary #554

Merged
merged 6 commits into from
Aug 22, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
formatting
  • Loading branch information
oygen87 committed Aug 8, 2019
commit 6894720f733a37b2bb885a39ae37dcbbf086a5e2
7 changes: 5 additions & 2 deletions testing/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ async function runTestsSerial(
break;
}
}
} return failed;
}
return failed;
}

/** Defines options for controlling execution details of a test suite. */
Expand Down Expand Up @@ -345,7 +346,9 @@ export async function runTests({
// promise rejections being swallowed.
setTimeout((): void => {
console.error(`There were ${stats.failed} test failures.`);
failedTests.forEach(failedTest => console.error(`${RED_BG_FAIL} ${red(failedTest)}`));
failedTests.forEach(failedTest =>
console.error(`${RED_BG_FAIL} ${red(failedTest)}`)
);
Deno.exit(1);
}, 0);
}
Expand Down