From: vissi Date: Thu, 19 Jul 2012 22:00:14 +0000 (-0700) Subject: Allow running phpunit tests from any directory X-Git-Tag: conduit-6~195 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=b28efb8f88b4c3fa59273e83a7dd7585dacfd096;p=arcanist.git Allow running phpunit tests from any directory Test Plan: Run `arc unit` anywhere. Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D3017 --- diff --git a/src/unit/engine/PhpunitTestEngine.php b/src/unit/engine/PhpunitTestEngine.php index 221e8821..baa7a201 100644 --- a/src/unit/engine/PhpunitTestEngine.php +++ b/src/unit/engine/PhpunitTestEngine.php @@ -36,11 +36,10 @@ final class PhpunitTestEngine extends ArcanistBaseUnitTestEngine { public function run() { $this->projectRoot = $this->getWorkingCopy()->getProjectRoot(); - $this->affectedTests = array(); foreach ($this->getPaths() as $path) { - $path = Filesystem::resolvePath($path); + $path = Filesystem::resolvePath($path, $this->projectRoot); // TODO: add support for directories // Users can call phpunit on the directory themselves