MediaWiki
REL1_22
|
Public Member Functions | |
__construct ($parent) | |
This should be called before the table prefix is changed. | |
end () | |
Commit transaction and clean up for result recording. | |
record ($test, $result) | |
Called after each test. | |
report () | |
Called before finishing the test run. | |
start () | |
Set up result recording; insert a record for the run with the date and all that fun stuff. | |
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. |
Definition at line 101 of file testHelpers.inc.
DbTestPreviewer::__construct | ( | $ | parent | ) |
This should be called before the table prefix is changed.
Reimplemented from TestRecorder.
Definition at line 111 of file testHelpers.inc.
References TestRecorder\$parent, and wfGetLBFactory().
Commit transaction and clean up for result recording.
Reimplemented from TestRecorder.
Definition at line 290 of file testHelpers.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 224 of file testHelpers.inc.
Referenced by report().
DbTestPreviewer::record | ( | $ | test, |
$ | result | ||
) |
Called after each test.
Reimplemented from TestRecorder.
Reimplemented in DbTestRecorder.
Definition at line 139 of file testHelpers.inc.
Called before finishing the test run.
Reimplemented from TestRecorder.
Definition at line 144 of file testHelpers.inc.
References $count, $res, $test, array(), as, empty, getTestStatusInfo(), and print.
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 123 of file testHelpers.inc.
DbTestPreviewer::$curRun [protected] |
Definition at line 104 of file testHelpers.inc.
DbTestPreviewer::$db [protected] |
Definition at line 103 of file testHelpers.inc.
DbTestPreviewer::$lb [protected] |
Definition at line 102 of file testHelpers.inc.
DbTestPreviewer::$prevRun [protected] |
Definition at line 105 of file testHelpers.inc.
DbTestPreviewer::$results [protected] |
Definition at line 106 of file testHelpers.inc.