mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-25 16:22:42 +01:00
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
This commit is contained in:
parent
842ca57b4a
commit
c50b18142d
2 changed files with 11 additions and 0 deletions
|
@ -32,6 +32,7 @@ final class ArcanistUnitTestResult {
|
||||||
|
|
||||||
private $namespace;
|
private $namespace;
|
||||||
private $name;
|
private $name;
|
||||||
|
private $link;
|
||||||
private $result;
|
private $result;
|
||||||
private $duration;
|
private $duration;
|
||||||
private $userData;
|
private $userData;
|
||||||
|
@ -47,6 +48,15 @@ final class ArcanistUnitTestResult {
|
||||||
return $this->name;
|
return $this->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setLink($link) {
|
||||||
|
$this->link = $link;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getLink() {
|
||||||
|
return $this->link;
|
||||||
|
}
|
||||||
|
|
||||||
public function setResult($result) {
|
public function setResult($result) {
|
||||||
$this->result = $result;
|
$this->result = $result;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -1324,6 +1324,7 @@ EOTEXT
|
||||||
foreach ($unit_workflow->getTestResults() as $test) {
|
foreach ($unit_workflow->getTestResults() as $test) {
|
||||||
$this->testResults[] = array(
|
$this->testResults[] = array(
|
||||||
'name' => $test->getName(),
|
'name' => $test->getName(),
|
||||||
|
'link' => $test->getLink(),
|
||||||
'result' => $test->getResult(),
|
'result' => $test->getResult(),
|
||||||
'userdata' => $test->getUserData(),
|
'userdata' => $test->getUserData(),
|
||||||
'coverage' => $test->getCoverage(),
|
'coverage' => $test->getCoverage(),
|
||||||
|
|
Loading…
Reference in a new issue