]> khamidou — GitHub mirrors - arcanist.git/commitdiff
[Adding postpone status for unittests]
authorslawekbiel <slawek.biel@facebook.com>
Tue, 22 Mar 2011 00:29:12 +0000 (17:29 -0700)
committerSlawek Biel <slawekbiel@fb.com>
Tue, 22 Mar 2011 02:11:58 +0000 (19:11 -0700)
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
src/workflow/unit/ArcanistUnitWorkflow.php

index 001ad5849564cc83ec8ae89c01a31f24c91896e5..426f44aac94394a8d88fd483be94b41836d89ce4 100644 (file)
@@ -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;
index 307bc0ea0c88cb0de2f7248b84180ca7cecc63b9..567a736983ca7794b2cfba4ebe048ccfeb76baf7 100644 (file)
@@ -110,6 +110,8 @@ EOTEXT
         ' <bg:red>** BROKEN **</bg>'),
       ArcanistUnitTestResult::RESULT_UNSOUND => phutil_console_format(
         ' <bg:yellow>** UNSOUND **</bg>'),
+      ArcanistUnitTestResult::RESULT_POSTPONED => phutil_console_format(
+        ' <bg:yellow>** POSTPONED **</bg>'),
       );
 
     $unresolved = array();