in src/_Private/ConciseCLIOutput.hack [21:49]
protected async function writeProgressImplAsync(
<<__AcceptDisposable>> IO\WriteHandle $handle,
HackTest\ProgressEvent $e,
): Awaitable<void> {
if ($e is HackTest\TestRunFinishedProgressEvent) {
await $this->writeFailureDetailsAsync($handle);
await $this->writeSummaryAsync($handle);
return;
}
if (!$e is HackTest\TestFinishedProgressEvent) {
return;
}
switch ($e->getResult()) {
case TestResult::PASSED:
await $handle->writeAllAsync('.');
break;
case TestResult::SKIPPED:
await $handle->writeAllAsync('S');
break;
case TestResult::FAILED:
await $handle->writeAllAsync('F');
break;
case TestResult::ERROR:
await $handle->writeAllAsync('E');
break;
}
}