Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15484048
D15880.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D15880.diff
View Options
diff --git a/src/unit/engine/ArcanistConfigurationDrivenUnitTestEngine.php b/src/unit/engine/ArcanistConfigurationDrivenUnitTestEngine.php
--- a/src/unit/engine/ArcanistConfigurationDrivenUnitTestEngine.php
+++ b/src/unit/engine/ArcanistConfigurationDrivenUnitTestEngine.php
@@ -150,7 +150,7 @@
foreach ($results as $result) {
// If the proxied engine renders its own test results then there
// is no need to render them again here.
- if (!$engine->shouldEchoTestResults()) {
+ if ($engine->shouldEchoTestResults()) {
echo $renderer->renderUnitResult($result);
}
}
diff --git a/src/unit/engine/PhutilUnitTestEngine.php b/src/unit/engine/PhutilUnitTestEngine.php
--- a/src/unit/engine/PhutilUnitTestEngine.php
+++ b/src/unit/engine/PhutilUnitTestEngine.php
@@ -221,4 +221,9 @@
return $paths;
}
+ public function shouldEchoTestResults() {
+ // If a renderer exists, PhutilTestCase will automatically render itself;
+ // otherwise, expect an upstream renderer to handle this.
+ return !$this->renderer;
+ }
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 10, 3:55 PM (3 d, 16 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7709067
Default Alt Text
D15880.diff (1 KB)
Attached To
Mode
D15880: Move 'should render' logic to PhutilUnitTestEngine
Attached
Detach File
Event Timeline
Log In to Comment