4
* Abstract base class for test result parsers.
6
abstract class ArcanistTestResultParser {
8
protected $enableCoverage;
9
protected $projectRoot;
10
protected $coverageFile;
13
public function setEnableCoverage($enable_coverage) {
14
$this->enableCoverage = $enable_coverage;
18
public function setProjectRoot($project_root) {
19
$this->projectRoot = $project_root;
23
public function setCoverageFile($coverage_file) {
24
$this->coverageFile = $coverage_file;
28
public function setAffectedTests($affected_tests) {
29
$this->affectedTests = $affected_tests;
33
public function setStderr($stderr) {
34
$this->stderr = $stderr;
39
* Parse test results from provided input and return an array of
40
* @{class:ArcanistUnitTestResult}.
42
* @param string Path to test.
43
* @param string String containing test results.
46
abstract public function parseTestResults($path, $test_results);