From: Joshua Spence Date: Tue, 17 Nov 2015 20:19:40 +0000 (+1100) Subject: Prevent double rendering of unit test results X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=a4dba24c468c23f3f5fbba5f9bd8ca74d1b2618a;p=arcanist.git Prevent double rendering of unit test results Summary: D14037 had the logic slightly wrong and unit test results are now being double rendered. Test Plan: Ran a unit test with `arc unit -- path/to/test` and saw the results rendered only once. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D14495 --- diff --git a/src/unit/engine/ArcanistConfigurationDrivenUnitTestEngine.php b/src/unit/engine/ArcanistConfigurationDrivenUnitTestEngine.php index 652a46d2..6cc659af 100644 --- a/src/unit/engine/ArcanistConfigurationDrivenUnitTestEngine.php +++ b/src/unit/engine/ArcanistConfigurationDrivenUnitTestEngine.php @@ -148,7 +148,9 @@ final class ArcanistConfigurationDrivenUnitTestEngine $all_results[] = $results; foreach ($results as $result) { - if ($engine->shouldEchoTestResults()) { + // If the proxied engine renders its own test results then there + // is no need to render them again here. + if (!$engine->shouldEchoTestResults()) { echo $renderer->renderUnitResult($result); } }