Changeset View
Changeset View
Standalone View
Standalone View
src/unit/engine/PhutilUnitTestEngine.php
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | private function getAllTests() { | ||||
return $run_tests; | return $run_tests; | ||||
} | } | ||||
private function getTestsForPaths() { | private function getTestsForPaths() { | ||||
$project_root = $this->getWorkingCopy()->getProjectRoot(); | $project_root = $this->getWorkingCopy()->getProjectRoot(); | ||||
$look_here = array(); | $look_here = array(); | ||||
foreach ($this->getPaths() as $path) { | $paths = $this->getPaths(); | ||||
if (!$paths) { | |||||
$paths = array_values($this->getPathsMap()); | |||||
} | |||||
foreach ($paths as $path) { | |||||
$library_root = phutil_get_library_root_for_path($path); | $library_root = phutil_get_library_root_for_path($path); | ||||
if (!$library_root) { | if (!$library_root) { | ||||
continue; | continue; | ||||
} | } | ||||
$library_name = phutil_get_library_name_for_root($library_root); | $library_name = phutil_get_library_name_for_root($library_root); | ||||
if (!$library_name) { | if (!$library_name) { | ||||
throw new Exception( | throw new Exception( | ||||
▲ Show 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | private function getTestsForPaths() { | ||||
return $run_tests; | return $run_tests; | ||||
} | } | ||||
public function shouldEchoTestResults() { | public function shouldEchoTestResults() { | ||||
return !$this->renderer; | return !$this->renderer; | ||||
} | } | ||||
public function getEngineConfigurationName() { | |||||
return 'phutil'; | |||||
} | |||||
} | } |