Page MenuHomePhabricator
Paste P1880

make arc unit NoseTestEngine work with `arc diff --everything`
ActivePublic

Authored by 20after4 on Oct 28 2015, 8:28 PM.
Tags
None
Referenced Files
F918028: Masterwork From Distant Lands
Oct 28 2015, 8:28 PM
Subscribers
None
diff --git a/src/unit/engine/NoseTestEngine.php b/src/unit/engine/NoseTestEngine.php
index e81bcb6..bea8c49 100644
--- a/src/unit/engine/NoseTestEngine.php
+++ b/src/unit/engine/NoseTestEngine.php
@@ -9,7 +9,16 @@ final class NoseTestEngine extends ArcanistUnitTestEngine {
private $parser;
+ public function supportsRunAllTests() {
+ return true;
+ }
+
public function run() {
+ if ($this->getRunAllTests()) {
+ $affected_tests = array(Filesystem::resolvePath("./"));
+ return $this->runTests($affected_tests, './');
+ }
+
$paths = $this->getPaths();
$affected_tests = array();

Event Timeline

20after4 changed the title of this paste from untitled to Masterwork From Distant Lands.
20after4 updated the paste's language from autodetect to autodetect.
20after4 changed the title of this paste from Masterwork From Distant Lands to make arc unit NoseTestEngine work with `arc diff --everything`.Oct 28 2015, 8:29 PM