From c50b18142d2872bdda5815288c775efbbd514a53 Mon Sep 17 00:00:00 2001 From: vrana Date: Thu, 6 Sep 2012 18:44:15 -0700 Subject: [PATCH] Support linking unit tests 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 | 10 ++++++++++ src/workflow/ArcanistDiffWorkflow.php | 1 + 2 files changed, 11 insertions(+) diff --git a/src/unit/ArcanistUnitTestResult.php b/src/unit/ArcanistUnitTestResult.php index 021e2264..a30789c2 100644 --- a/src/unit/ArcanistUnitTestResult.php +++ b/src/unit/ArcanistUnitTestResult.php @@ -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; diff --git a/src/workflow/ArcanistDiffWorkflow.php b/src/workflow/ArcanistDiffWorkflow.php index 6d78f4c9..1c2a8055 100644 --- a/src/workflow/ArcanistDiffWorkflow.php +++ b/src/workflow/ArcanistDiffWorkflow.php @@ -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(),