MediaWiki
master
|
Public Member Functions | |
__construct ($parent) | |
This should be called before the table prefix is changed. More... | |
end () | |
Close the DB connection. More... | |
getName ($test, $subtest) | |
record ($test, $subtest, $result) | |
Called after each test. More... | |
report () | |
Called before finishing the test run. More... | |
start () | |
Set up result recording; insert a record for the run with the date and all that fun stuff. More... | |
Public Member Functions inherited from TestRecorder | |
__construct ($parent) | |
end () | |
Called at the end of the parser test run. More... | |
record ($test, $subtest, $result) | |
Called after each test. More... | |
report () | |
Called before finishing the test run. More... | |
reportPercentage ($success, $total) | |
start () | |
Called at beginning of the parser test run. More... | |
Protected Attributes | |
$curRun | |
$db | |
$lb | |
$prevRun | |
$results | |
Private Member Functions | |
getTestStatusInfo ($testname, $after) | |
Returns a string giving information about when a test last had a status change. More... | |
Additional Inherited Members | |
Public Attributes inherited from TestRecorder | |
$parent | |
$term | |
Definition at line 112 of file testHelpers.inc.
DbTestPreviewer::__construct | ( | $parent | ) |
This should be called before the table prefix is changed.
TestRecorder | $parent |
Definition at line 123 of file testHelpers.inc.
References TestRecorder\$parent, DB_MASTER, and wfGetLBFactory().
DbTestPreviewer::end | ( | ) |
DbTestPreviewer::getName | ( | $test, | |
$subtest | |||
) |
Definition at line 151 of file testHelpers.inc.
Referenced by record(), and DbTestRecorder\record().
|
private |
Returns a string giving information about when a test last had a status change.
Could help to track down when regressions were introduced, as distinct from tests which have never passed (which are more change requests than regressions).
string | $testname | |
string | $after |
Definition at line 247 of file testHelpers.inc.
References $pre.
Referenced by report().
DbTestPreviewer::record | ( | $test, | |
$subtest, | |||
$result | |||
) |
Called after each test.
string | $test | |
integer | $subtest | |
bool | $result |
Implements ITestRecorder.
Definition at line 159 of file testHelpers.inc.
References getName().
DbTestPreviewer::report | ( | ) |
Called before finishing the test run.
Implements ITestRecorder.
Definition at line 164 of file testHelpers.inc.
References $code, $count, $res, as, getTestStatusInfo(), and print.
DbTestPreviewer::start | ( | ) |
Set up result recording; insert a record for the run with the date and all that fun stuff.
Implements ITestRecorder.
Definition at line 135 of file testHelpers.inc.
References print.
|
protected |
Definition at line 115 of file testHelpers.inc.
|
protected |
Definition at line 114 of file testHelpers.inc.
|
protected |
Definition at line 113 of file testHelpers.inc.
|
protected |
Definition at line 116 of file testHelpers.inc.
|
protected |
Definition at line 117 of file testHelpers.inc.