]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Support linking unit tests
authorvrana <jakubv@fb.com>
Fri, 7 Sep 2012 01:44:15 +0000 (18:44 -0700)
committervrana <jakubv@fb.com>
Fri, 7 Sep 2012 01:48:59 +0000 (18:48 -0700)
Summary: This is Arcanist part of D3434.

Test Plan: None.

Reviewers: epriestley, wez

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D3450

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

index 021e22646498c824ffbaf1e5054db52c2bd95fb1..a30789c244183c6eb598f5be7d4a01ffcef47197 100644 (file)
@@ -32,6 +32,7 @@ final class ArcanistUnitTestResult {
 
   private $namespace;
   private $name;
+  private $link;
   private $result;
   private $duration;
   private $userData;
@@ -47,6 +48,15 @@ final class ArcanistUnitTestResult {
     return $this->name;
   }
 
+  public function setLink($link) {
+    $this->link = $link;
+    return $this;
+  }
+
+  public function getLink() {
+    return $this->link;
+  }
+
   public function setResult($result) {
     $this->result = $result;
     return $this;
index 6d78f4c938c087eee5bbd8dfb1230f00ee7c8adb..1c2a8055420570a5181327889e1817ddc4e92e32 100644 (file)
@@ -1324,6 +1324,7 @@ EOTEXT
       foreach ($unit_workflow->getTestResults() as $test) {
         $this->testResults[] = array(
           'name'      => $test->getName(),
+          'link'      => $test->getLink(),
           'result'    => $test->getResult(),
           'userdata'  => $test->getUserData(),
           'coverage'  => $test->getCoverage(),