{"action":"created","issue":{"url":"https://api.github.com/repos/tagview/arcanist-extensions/issues/9","labels_url":"https://api.github.com/repos/tagview/arcanist-extensions/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/tagview/arcanist-extensions/issues/9/comments","events_url":"https://api.github.com/repos/tagview/arcanist-extensions/issues/9/events","html_url":"https://github.com/tagview/arcanist-extensions/issues/9","id":73441389,"number":9,"title":"Would you accept a PR that adds a GoTestEngine?","user":{"login":"elsigh","id":517210,"avatar_url":"https://avatars.githubusercontent.com/u/517210?v=3","gravatar_id":"","url":"https://api.github.com/users/elsigh","html_url":"https://github.com/elsigh","followers_url":"https://api.github.com/users/elsigh/followers","following_url":"https://api.github.com/users/elsigh/following{/other_user}","gists_url":"https://api.github.com/users/elsigh/gists{/gist_id}","starred_url":"https://api.github.com/users/elsigh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elsigh/subscriptions","organizations_url":"https://api.github.com/users/elsigh/orgs","repos_url":"https://api.github.com/users/elsigh/repos","events_url":"https://api.github.com/users/elsigh/events{/privacy}","received_events_url":"https://api.github.com/users/elsigh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-05T21:47:02Z","updated_at":"2015-05-08T12:50:54Z","closed_at":null,"body":"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.\r\n\r\nfinal class GoTestEngine extends ArcanistUnitTestEngine {\r\n  public function run() {\r\n    $command = $this->getConfigurationManager()->getConfigFromAnySource('unit.engine.go.command');\r\n    $future = new ExecFuture($command);\r\n\r\n    do {\r\n      list($stdout, $stderr) = $future->read();\r\n      echo $stdout;\r\n      echo $stderr;\r\n      sleep(0.5);\r\n    } while (!$future->isReady());\r\n\r\n    list($error, $stdout, $stderr) = $future->resolve();\r\n\r\n    $parser = new ArcanistGoTestResultParser();\r\n    return $parser->parseTestResults(\"\", $stdout);\r\n  }\r\n}"},"comment":{"url":"https://api.github.com/repos/tagview/arcanist-extensions/issues/comments/100223203","html_url":"https://github.com/tagview/arcanist-extensions/issues/9#issuecomment-100223203","issue_url":"https://api.github.com/repos/tagview/arcanist-extensions/issues/9","id":100223203,"user":{"login":"reu","id":191614,"avatar_url":"https://avatars.githubusercontent.com/u/191614?v=3","gravatar_id":"","url":"https://api.github.com/users/reu","html_url":"https://github.com/reu","followers_url":"https://api.github.com/users/reu/followers","following_url":"https://api.github.com/users/reu/following{/other_user}","gists_url":"https://api.github.com/users/reu/gists{/gist_id}","starred_url":"https://api.github.com/users/reu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reu/subscriptions","organizations_url":"https://api.github.com/users/reu/orgs","repos_url":"https://api.github.com/users/reu/repos","events_url":"https://api.github.com/users/reu/events{/privacy}","received_events_url":"https://api.github.com/users/reu/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T12:50:54Z","updated_at":"2015-05-08T12:50:54Z","body":"Sure thing! Sorry for the delay, I am not being able to review your PRs, I will take a look at this soon."}}