Changeset View
Changeset View
Standalone View
Standalone View
src/unit/engine/ArcanistBaseUnitTestEngine.php
| <?php | <?php | ||||
| /** | /** | ||||
| * Manages unit test execution. | * Manages unit test execution. | ||||
| * | |||||
| * @group unit | |||||
| */ | */ | ||||
| abstract class ArcanistBaseUnitTestEngine { | abstract class ArcanistBaseUnitTestEngine { | ||||
| private $workingCopy; | private $workingCopy; | ||||
| private $paths; | private $paths; | ||||
| private $arguments = array(); | private $arguments = array(); | ||||
| protected $diffID; | protected $diffID; | ||||
| private $enableAsyncTests; | private $enableAsyncTests; | ||||
| ▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | abstract class ArcanistBaseUnitTestEngine { | ||||
| public function setRenderer(ArcanistUnitRenderer $renderer) { | public function setRenderer(ArcanistUnitRenderer $renderer) { | ||||
| $this->renderer = $renderer; | $this->renderer = $renderer; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| abstract public function run(); | abstract public function run(); | ||||
| /** | /** | ||||
| * Modify the return value of this function in the child class, if | * Modify the return value of this function in the child class, if you do | ||||
| * you do not need to echo the test results after all the tests have | * not need to echo the test results after all the tests have been run. This | ||||
| * been run. This is the case for example when the child class | * is the case for example when the child class prints the tests results | ||||
| * prints the tests results while the tests are running. | * while the tests are running. | ||||
| */ | */ | ||||
| public function shouldEchoTestResults() { | public function shouldEchoTestResults() { | ||||
| return true; | return true; | ||||
| } | } | ||||
| } | } | ||||