Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistUnitWorkflow.php
Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | if ($everything && $paths) { | ||||
throw new ArcanistUsageException( | throw new ArcanistUsageException( | ||||
pht( | pht( | ||||
'You can not specify paths with %s. The %s flag runs every test.', | 'You can not specify paths with %s. The %s flag runs every test.', | ||||
'--everything', | '--everything', | ||||
'--everything')); | '--everything')); | ||||
} | } | ||||
if ($everything) { | if ($everything) { | ||||
$paths = iterator_to_array($this->getRepositoryApi()->getAllFiles()); | $paths = iterator_to_array($this->getRepositoryAPI()->getAllFiles()); | ||||
} else { | } else { | ||||
$paths = $this->selectPathsForWorkflow($paths, $rev); | $paths = $this->selectPathsForWorkflow($paths, $rev); | ||||
} | } | ||||
$this->engine = $this->newUnitTestEngine($this->getArgument('engine')); | $this->engine = $this->newUnitTestEngine($this->getArgument('engine')); | ||||
if ($everything) { | if ($everything) { | ||||
$this->engine->setRunAllTests(true); | $this->engine->setRunAllTests(true); | ||||
} else { | } else { | ||||
▲ Show 20 Lines • Show All 276 Lines • Show Last 20 Lines |