MediaWiki REL1_33
|
Interface to record parser test results. More...
Public Member Functions | |
end () | |
Called at the end of the parser test run. | |
endSuite ( $path) | |
Called after ending an input file. | |
record ( $test, ParserTestResult $result) | |
Called after each test. | |
report () | |
Called before finishing the test run. | |
skipped ( $test, $subtest) | |
Mark a test skipped. | |
start () | |
Called at beginning of the parser test run. | |
startSuite ( $path) | |
Called before starting an input file. | |
startTest ( $test) | |
Called before starting a test. | |
warning ( $message) | |
Show a warning to the user. | |
Interface to record parser test results.
The TestRecorder is an class hierarchy to record the result of MediaWiki parser tests. One should call start() before running the full parser tests and end() once all the tests have been finished. After each test, you should use record() to keep track of your tests results. Finally, report() is used to generate a summary of your test run, one could dump it to the console for human consumption or register the result in a database for tracking purposes.
Definition at line 35 of file TestRecorder.php.
TestRecorder::end | ( | ) |
Called at the end of the parser test run.
Reimplemented in DbTestRecorder, and MultiTestRecorder.
Definition at line 90 of file TestRecorder.php.
TestRecorder::endSuite | ( | $path | ) |
Called after ending an input file.
Reimplemented in MultiTestRecorder, and ParserTestPrinter.
Definition at line 58 of file TestRecorder.php.
TestRecorder::record | ( | $test, | |
ParserTestResult | $result ) |
Called after each test.
array | $test | |
ParserTestResult | $result |
Reimplemented in DbTestPreviewer, DbTestRecorder, MultiTestRecorder, and ParserTestPrinter.
Definition at line 66 of file TestRecorder.php.
TestRecorder::report | ( | ) |
Called before finishing the test run.
Reimplemented in DbTestPreviewer, MultiTestRecorder, and ParserTestPrinter.
Definition at line 84 of file TestRecorder.php.
TestRecorder::skipped | ( | $test, | |
$subtest ) |
Mark a test skipped.
Reimplemented in PhpunitTestRecorder, MultiTestRecorder, and ParserTestPrinter.
Definition at line 78 of file TestRecorder.php.
TestRecorder::start | ( | ) |
Called at beginning of the parser test run.
Reimplemented in DbTestPreviewer, DbTestRecorder, MultiTestRecorder, and ParserTestPrinter.
Definition at line 40 of file TestRecorder.php.
TestRecorder::startSuite | ( | $path | ) |
Called before starting an input file.
Reimplemented in MultiTestRecorder, and ParserTestPrinter.
Definition at line 52 of file TestRecorder.php.
TestRecorder::startTest | ( | $test | ) |
Called before starting a test.
Reimplemented in MultiTestRecorder, and ParserTestPrinter.
Definition at line 46 of file TestRecorder.php.
TestRecorder::warning | ( | $message | ) |
Show a warning to the user.
Reimplemented in MultiTestRecorder, and ParserTestPrinter.
Definition at line 72 of file TestRecorder.php.