in src/HackTestCLI.hack [94:110]
await HackTestRunner::runAsync(
$this->getArguments(),
shape(
'classes' => (
$cf === null ? ($_ ==> true) : ($c ==> \fnmatch($cf, $c))
),
'methods' => ($mf ?? ($_class, $_method) ==> true),
),
async $event ==> await $output->writeProgressAsync($stdout, $event),
);
$result_counts = $output->getResultCounts();
if (Math\sum($result_counts) === 0) {
await $this->getStderr()->writeAllAsync("No tests found.\n");
return ExitCode::ERROR;
}