MediaWiki
1.30.0
|
Public Member Functions | |
__construct ( $db, $filter=false) | |
This should be called before the table prefix is changed. More... | |
record ( $test, ParserTestResult $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 | |
end () | |
Called at the end of the parser test run. More... | |
endSuite ( $path) | |
Called after ending an input file. More... | |
skipped ( $test, $subtest) | |
Mark a test skipped. More... | |
startSuite ( $path) | |
Called before starting an input file. More... | |
startTest ( $test) | |
Called before starting a test. More... | |
warning ( $message) | |
Show a warning to the user. More... | |
Protected Attributes | |
$curRun | |
$db | |
$filter | |
$lb | |
$prevRun | |
$results | |
Private Member Functions | |
getTestStatusInfo ( $testname, $after) | |
Returns a string giving information about when a test last had a status change. More... | |
Definition at line 22 of file DbTestPreviewer.php.
DbTestPreviewer::__construct | ( | $db, | |
$filter = false |
|||
) |
This should be called before the table prefix is changed.
IDatabase | $db | |
bool | string | $filter |
Definition at line 35 of file DbTestPreviewer.php.
|
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 143 of file DbTestPreviewer.php.
References $pre.
Referenced by report().
DbTestPreviewer::record | ( | $test, | |
ParserTestResult | $result | ||
) |
Called after each test.
array | $test | |
ParserTestResult | $result |
Reimplemented from TestRecorder.
Definition at line 58 of file DbTestPreviewer.php.
DbTestPreviewer::report | ( | ) |
Called before finishing the test run.
Reimplemented from TestRecorder.
Definition at line 62 of file DbTestPreviewer.php.
References $code, $filter, $res, as, captcha-old\count, and getTestStatusInfo().
DbTestPreviewer::start | ( | ) |
Set up result recording; insert a record for the run with the date and all that fun stuff.
Reimplemented from TestRecorder.
Definition at line 44 of file DbTestPreviewer.php.
|
protected |
Definition at line 26 of file DbTestPreviewer.php.
|
protected |
Definition at line 25 of file DbTestPreviewer.php.
Referenced by __construct().
|
protected |
Definition at line 23 of file DbTestPreviewer.php.
Referenced by __construct(), and report().
|
protected |
Definition at line 24 of file DbTestPreviewer.php.
|
protected |
Definition at line 27 of file DbTestPreviewer.php.
|
protected |
Definition at line 28 of file DbTestPreviewer.php.