Summary:
See discussion on T1630.
extraData provides more scope for extensions to piggy-back
more data on the test results and have that pulled up to the UI.
We're using keys like "facebook:complexity" to store additional
data as part of the test results.
Test Plan:
Nothing in the codebase touches extraData at the moment, so
you'll just have to have faith/prove by inspection.
Reviewers: vrana, nh, tuomaspelkonen, epriestley
Reviewed By: epriestley
CC: aran, epriestley
Maniphest Tasks: T1630
Differential Revision: https://secure.phabricator.com/D3276
private $result;
private $duration;
private $userData;
+ private $extraData;
private $coverage;
public function setName($name) {
return $this->userData;
}
+ /**
+ * "extra data" allows an implementation to store additional
+ * key/value metadata along with the result of the test run.
+ */
+ public function setExtraData(array $extra_data = null) {
+ $this->extraData = $extra_data;
+ return $this;
+ }
+
+ public function getExtraData() {
+ return $this->extraData;
+ }
+
public function setCoverage($coverage) {
$this->coverage = $coverage;
return $this;
'result' => $test->getResult(),
'userdata' => $test->getUserData(),
'coverage' => $test->getCoverage(),
+ 'extra' => $test->getExtraData(),
);
}