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 1221 of file parserTests.inc.
DbTestPreviewer::__construct | ( | $ | parent | ) |
This should be called before the table prefix is changed.
Reimplemented from TestRecorder.
Definition at line 1231 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 1402 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 1337 of file parserTests.inc.
Referenced by report().
DbTestPreviewer::record | ( | $ | test, | |
$ | result | |||
) |
Reimplemented from TestRecorder.
Reimplemented in DbTestRecorder.
Definition at line 1258 of file parserTests.inc.
DbTestPreviewer::report | ( | ) |
Reimplemented from TestRecorder.
Definition at line 1263 of file parserTests.inc.
References $code, $res, $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 1242 of file parserTests.inc.
DbTestPreviewer::$curRun [protected] |
DbTestPreviewer::$db [protected] |
DbTestPreviewer::$lb [protected] |
DbTestPreviewer::$prevRun [protected] |
DbTestPreviewer::$results [protected] |