Changeset View
Changeset View
Standalone View
Standalone View
src/unit/engine/ArcanistTestResultParser.php
- This file was moved from src/unit/engine/ArcanistBaseTestResultParser.php.
| <?php | <?php | ||||
| /** | /** | ||||
| * Abstract Base class for test result parsers. | * Abstract base class for test result parsers. | ||||
| */ | */ | ||||
| abstract class ArcanistBaseTestResultParser { | abstract class ArcanistTestResultParser { | ||||
| protected $enableCoverage; | protected $enableCoverage; | ||||
| protected $projectRoot; | protected $projectRoot; | ||||
| protected $coverageFile; | protected $coverageFile; | ||||
| protected $stderr; | protected $stderr; | ||||
| public function setEnableCoverage($enable_coverage) { | public function setEnableCoverage($enable_coverage) { | ||||
| $this->enableCoverage = $enable_coverage; | $this->enableCoverage = $enable_coverage; | ||||
| Show All 16 Lines | abstract class ArcanistTestResultParser { | ||||
| } | } | ||||
| public function setStderr($stderr) { | public function setStderr($stderr) { | ||||
| $this->stderr = $stderr; | $this->stderr = $stderr; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| /** | /** | ||||
| * Parse test results from provided input and return an array | * Parse test results from provided input and return an array of | ||||
| * of ArcanistUnitTestResult | * @{class:ArcanistUnitTestResult}. | ||||
| * | * | ||||
| * @param string $path Path to test | * @param string Path to test. | ||||
| * @param string $test_results String containing test results | * @param string String containing test results. | ||||
| * | * @return array | ||||
| * @return array ArcanistUnitTestResult | |||||
| */ | */ | ||||
| abstract public function parseTestResults($path, $test_results); | abstract public function parseTestResults($path, $test_results); | ||||
| } | } | ||||