-
Notifications
You must be signed in to change notification settings - Fork 21
Would you accept a PR that adds a GoTestEngine? #9
Copy link
Copy link
Open
Description
While I know it's not precisely an extendible test engine like TapTestEngine, it does only work in the MultiTestEngine context.. I'm happy to send a PR if you're cool with it.
final class GoTestEngine extends ArcanistUnitTestEngine {
public function run() {
$command = $this->getConfigurationManager()->getConfigFromAnySource('unit.engine.go.command');
$future = new ExecFuture($command);
do {
list($stdout, $stderr) = $future->read();
echo $stdout;
echo $stderr;
sleep(0.5);
} while (!$future->isReady());
list($error, $stdout, $stderr) = $future->resolve();
$parser = new ArcanistGoTestResultParser();
return $parser->parseTestResults("", $stdout);
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels