Page MenuHomePhabricator

D7952.id17989.diff
No OneTemporary

D7952.id17989.diff

Index: src/unit/ArcanistUnitTestResult.php
===================================================================
--- src/unit/ArcanistUnitTestResult.php
+++ src/unit/ArcanistUnitTestResult.php
@@ -14,6 +14,7 @@
const RESULT_UNSOUND = 'unsound';
const RESULT_POSTPONED = 'postponed';
+ private $namespace;
private $name;
private $link;
private $result;
@@ -22,6 +23,15 @@
private $extraData;
private $coverage;
+ public function setNamespace($namespace) {
+ $this->namespace = $namespace;
+ return $this;
+ }
+
+ public function getNamespace() {
+ return $this->namespace;
+ }
+
public function setName($name) {
$this->name = $name;
return $this;
Index: src/unit/engine/phutil/ArcanistPhutilTestCase.php
===================================================================
--- src/unit/engine/phutil/ArcanistPhutilTestCase.php
+++ src/unit/engine/phutil/ArcanistPhutilTestCase.php
@@ -396,6 +396,7 @@
$result = new ArcanistUnitTestResult();
$result->setCoverage($coverage);
+ $result->setNamespace(get_class($this));
$result->setName($this->runningTest);
$result->setLink($this->getLink($this->runningTest));
$result->setResult($test_result);
Index: src/unit/renderer/ArcanistUnitConsoleRenderer.php
===================================================================
--- src/unit/renderer/ArcanistUnitConsoleRenderer.php
+++ src/unit/renderer/ArcanistUnitConsoleRenderer.php
@@ -15,7 +15,7 @@
$return = sprintf(
" %s %s\n",
$this->getFormattedResult($result->getResult()).$duration,
- $result->getName());
+ $result->getNamespace().'::'.$result->getName());
if ($result_code != ArcanistUnitTestResult::RESULT_PASS) {
$return .= $result->getUserData()."\n";

File Metadata

Mime Type
text/plain
Expires
Wed, Oct 16, 3:59 PM (3 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6718147
Default Alt Text
D7952.id17989.diff (1 KB)

Event Timeline