Inherited by DbTestRecorder.
Public Member Functions | |
__construct ($parent) | |
This should be called before the table prefix is changed. | |
start () | |
Set up result recording; insert a record for the run with the date and all that fun stuff. | |
record ($test, $result) | |
report () | |
end () | |
Commit transaction and clean up for result recording. | |
Protected Attributes | |
$lb | |
Database load balancer. | |
$db | |
Database connection to the main DB. | |
$curRun | |
run ID number for the current run | |
$prevRun | |
run ID number for the previous run, if any | |
$results | |
Result array. | |
Private Member Functions | |
getTestStatusInfo ($testname, $after) | |
Returns a string giving information about when a test last had a status change. |
Definition at line 1203 of file parserTests.inc.
DbTestPreviewer::__construct | ( | $ | parent | ) |
This should be called before the table prefix is changed.
Reimplemented from TestRecorder.
Definition at line 1213 of file parserTests.inc.
References TestRecorder::$parent, and wfGetLBFactory().
DbTestPreviewer::end | ( | ) |
Commit transaction and clean up for result recording.
Reimplemented from TestRecorder.
Definition at line 1384 of file parserTests.inc.
DbTestPreviewer::getTestStatusInfo | ( | $ | testname, | |
$ | after | |||
) | [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).
Definition at line 1319 of file parserTests.inc.
References $conds.
Referenced by report().
DbTestPreviewer::record | ( | $ | test, | |
$ | result | |||
) |
Reimplemented from TestRecorder.
Reimplemented in DbTestRecorder.
Definition at line 1240 of file parserTests.inc.
DbTestPreviewer::report | ( | ) |
Reimplemented from TestRecorder.
Definition at line 1245 of file parserTests.inc.
References $code, $count, $res, $row, $test, getTestStatusInfo(), print, and printf().
DbTestPreviewer::start | ( | ) |
Set up result recording; insert a record for the run with the date and all that fun stuff.
Reimplemented from TestRecorder.
Reimplemented in DbTestRecorder.
Definition at line 1224 of file parserTests.inc.
References $wgDBprefix, $wgDBtype, and print.
DbTestPreviewer::$curRun [protected] |
DbTestPreviewer::$db [protected] |
DbTestPreviewer::$lb [protected] |
DbTestPreviewer::$prevRun [protected] |
DbTestPreviewer::$results [protected] |