1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-12-23 22:10:54 +01:00

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
This commit is contained in:
vissi 2012-07-19 15:00:14 -07:00 committed by epriestley
parent 1e5656875f
commit b28efb8f88

View file

@ -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