func report(tests: [TestCase], failures: [Failure])Prints either a passing count or every recorded failure.
A clean run emits <count> tests passed.. A failing run prints each test name in red with its assertion text; exit status is decided by the prelude from the returned failure count, not by this formatter.
View Source
pub func report(tests: [TestCase], failures: [Failure]) {
if failures.is_empty() {
print(tests.count.show() + " tests passed.")
} else {
for failure in failures {
print(ColorfulString.red(failure.test_name) + ": " + failure.assertion)
}
}
}