]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Remove support for skipping tests
authorvrana <jakubv@fb.com>
Fri, 8 Jun 2012 20:35:52 +0000 (13:35 -0700)
committervrana <jakubv@fb.com>
Fri, 8 Jun 2012 20:42:12 +0000 (13:42 -0700)
Summary: Almost revert D2673 but leave the support for 'repeat'.

Test Plan: `arc help unit`.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D2689

src/unit/engine/ArcanistBaseUnitTestEngine.php
src/unit/engine/PhutilUnitTestEngine.php
src/workflow/ArcanistUnitWorkflow.php

index b9aa9ca4a55519e185be4916f87b4c30030dbe7c..2f7473eeb3dd44f3982007b6cf40cf5251ede3f3 100644 (file)
@@ -25,7 +25,6 @@ abstract class ArcanistBaseUnitTestEngine {
 
   private $workingCopy;
   private $paths;
-  private $skipFiles;
   private $arguments = array();
   protected $diffID;
   private $enableAsyncTests;
@@ -55,15 +54,6 @@ abstract class ArcanistBaseUnitTestEngine {
     return $this->paths;
   }
 
-  final public function setSkipFiles(array $paths) {
-    $this->skipFiles = $paths;
-    return $this;
-  }
-
-  final public function getSkipFiles() {
-    return $this->skipFiles;
-  }
-
   final public function setArguments(array $arguments) {
     $this->arguments = $arguments;
     return $this;
index 4cfa28e6b95e031f85fee907f8b9858b9c5f65cb..3027ca4692c4b1893ddb104235a6177a36b2f608 100644 (file)
@@ -77,13 +77,6 @@ final class PhutilUnitTestEngine extends ArcanistBaseUnitTestEngine {
       } while ($library_path != '.');
     }
 
-    $skip = array();
-    foreach ($this->getSkipFiles() as $skip_path) {
-      $skip_path = Filesystem::resolvePath($skip_path);
-      $skip_path = Filesystem::readablePath($skip_path, $library_root);
-      $skip[$skip_path] = true;
-    }
-
     // Look for any class that extends ArcanistPhutilTestCase inside a
     // __tests__ directory in any parent directory of every affected file.
     //
@@ -107,9 +100,6 @@ final class PhutilUnitTestEngine extends ArcanistBaseUnitTestEngine {
         ->selectAndLoadSymbols();
 
       foreach ($symbols as $symbol) {
-        if (isset($skip[$symbol['where']])) {
-          continue;
-        }
         $run_tests[$symbol['name']] = true;
       }
     }
index d6d7cf82ccb80eddac948097e98d43fb61e024cc..4dcc44de2f82f94d2f70765ead63140e7645a494 100644 (file)
@@ -68,11 +68,6 @@ EOTEXT
         'help' =>
           "Override configured unit engine for this project."
       ),
-      'skip' => array(
-        'param' => 'path',
-        'help' => "Specify file paths that will be ignored.",
-        'repeat' => true,
-      ),
       'coverage' => array(
         'help' => 'Always enable coverage information.',
         'conflicts' => array(
@@ -132,7 +127,6 @@ EOTEXT
     $this->engine = newv($engine_class, array());
     $this->engine->setWorkingCopy($working_copy);
     $this->engine->setPaths($paths);
-    $this->engine->setSkipFiles($this->getArgument('skip'));
     $this->engine->setArguments($this->getPassthruArgumentsAsMap('unit'));
 
     $enable_coverage = null; // Means "default".