From 607cd77ca10f5f860022739332a6993f747a2494 Mon Sep 17 00:00:00 2001 From: Mukunda Modell Date: Mon, 25 Jan 2016 04:07:43 -0600 Subject: [PATCH] Add support for '--everything' in NoseTestEngine Summary: Adds support for running all unit tests with NoseTestEngine. Test Plan: `ran arc unit --everything` and got unit test results Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: joshuaspence, Korvin Differential Revision: https://secure.phabricator.com/D14362 --- src/unit/engine/NoseTestEngine.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/unit/engine/NoseTestEngine.php b/src/unit/engine/NoseTestEngine.php index 039daf5e..a411303d 100644 --- a/src/unit/engine/NoseTestEngine.php +++ b/src/unit/engine/NoseTestEngine.php @@ -9,7 +9,16 @@ final class NoseTestEngine extends ArcanistUnitTestEngine { private $parser; + protected function supportsRunAllTests() { + return true; + } + public function run() { + if ($this->getRunAllTests()) { + $root = $this->getWorkingCopy()->getProjectRoot(); + return $this->runTests(array($root), './'); + } + $paths = $this->getPaths(); $affected_tests = array();