mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42:41 +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:
parent
1e5656875f
commit
b28efb8f88
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue