]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Export namespace in `ArcanistUnitTestResult` dictionary
authorJoshua Spence <josh@joshuaspence.com>
Sun, 4 Jan 2015 19:48:32 +0000 (06:48 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Sun, 4 Jan 2015 19:48:32 +0000 (06:48 +1100)
Summary: D7952 added namespaces to `ArcanistUnitTestResult` but these are not exported and thus don't get sent from client to server.

Test Plan: Uploaded a diff and inspected the contents of the `phabricator_differential.differential_diffproperty` table.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11208

src/unit/ArcanistUnitTestResult.php
src/workflow/ArcanistDiffWorkflow.php

index 9628b59137e497d8c29b097f049087675a777798..0a8d6e6361e683d000cc3c3101475d8e25d137e3 100644 (file)
@@ -122,6 +122,7 @@ final class ArcanistUnitTestResult {
 
   public function toDictionary() {
     return array(
+      'namespace' => $this->getNamespace(),
       'name' => $this->getName(),
       'link' => $this->getLink(),
       'result' => $this->getResult(),
index 231732eb56c674afd8fe7d24a4c567741e49b822..6513ef9b5675217f651ea9261d02614333ca8d0f 100644 (file)
@@ -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;