diff --git a/src/unit/ArcanistUnitTestResult.php b/src/unit/ArcanistUnitTestResult.php index 9628b591..0a8d6e63 100644 --- a/src/unit/ArcanistUnitTestResult.php +++ b/src/unit/ArcanistUnitTestResult.php @@ -122,6 +122,7 @@ final class ArcanistUnitTestResult { public function toDictionary() { return array( + 'namespace' => $this->getNamespace(), 'name' => $this->getName(), 'link' => $this->getLink(), 'result' => $this->getResult(), diff --git a/src/workflow/ArcanistDiffWorkflow.php b/src/workflow/ArcanistDiffWorkflow.php index 231732eb..6513ef9b 100644 --- a/src/workflow/ArcanistDiffWorkflow.php +++ b/src/workflow/ArcanistDiffWorkflow.php @@ -1333,14 +1333,7 @@ EOTEXT $this->testResults = array(); foreach ($unit_workflow->getTestResults() as $test) { - $this->testResults[] = array( - 'name' => $test->getName(), - 'link' => $test->getLink(), - 'result' => $test->getResult(), - 'userdata' => $test->getUserData(), - 'coverage' => $test->getCoverage(), - 'extra' => $test->getExtraData(), - ); + $this->testResults[] = $test->toDictionary(); } return $unit_result;