From aa44db2f968d6357aedef9c811d080ea67f93180 Mon Sep 17 00:00:00 2001 From: slawekbiel Date: Mon, 21 Mar 2011 17:29:12 -0700 Subject: [PATCH] [Adding postpone status for unittests] Summary: That's for the tests that will be run asynchronously. Test Plan: run arc unit with some tests that returned postponed status - they showed up. Background was yellow. Reviewed By: epriestley CC: epriestley Revert Plan: sure Other Notes: Differential Revision: 77 --- src/unit/result/ArcanistUnitTestResult.php | 1 + src/workflow/unit/ArcanistUnitWorkflow.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/unit/result/ArcanistUnitTestResult.php b/src/unit/result/ArcanistUnitTestResult.php index 001ad584..426f44aa 100644 --- a/src/unit/result/ArcanistUnitTestResult.php +++ b/src/unit/result/ArcanistUnitTestResult.php @@ -28,6 +28,7 @@ class ArcanistUnitTestResult { const RESULT_SKIP = 'skip'; const RESULT_BROKEN = 'broken'; const RESULT_UNSOUND = 'unsound'; + const RESULT_POSTPONED = 'postponed'; private $namespace; private $name; diff --git a/src/workflow/unit/ArcanistUnitWorkflow.php b/src/workflow/unit/ArcanistUnitWorkflow.php index 307bc0ea..567a7369 100644 --- a/src/workflow/unit/ArcanistUnitWorkflow.php +++ b/src/workflow/unit/ArcanistUnitWorkflow.php @@ -110,6 +110,8 @@ EOTEXT ' ** BROKEN **'), ArcanistUnitTestResult::RESULT_UNSOUND => phutil_console_format( ' ** UNSOUND **'), + ArcanistUnitTestResult::RESULT_POSTPONED => phutil_console_format( + ' ** POSTPONED **'), ); $unresolved = array(); -- 2.43.0