MediaWiki
1.28.0
|
Interface to record parser test results. More...
Public Member Functions | |
end () | |
Called at the end of the parser test run. More... | |
endSuite ($path) | |
Called after ending an input file. More... | |
record ($test, ParserTestResult $result) | |
Called after each test. More... | |
report () | |
Called before finishing the test run. More... | |
skipped ($test, $subtest) | |
Mark a test skipped. More... | |
start () | |
Called at beginning of the parser test run. 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... | |
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.
Definition at line 90 of file TestRecorder.php.
TestRecorder::endSuite | ( | $path | ) |
Called after ending an input file.
Definition at line 58 of file TestRecorder.php.
TestRecorder::record | ( | $test, | |
ParserTestResult | $result | ||
) |
Called after each test.
array | $test | |
ParserTestResult | $result |
Definition at line 66 of file TestRecorder.php.
TestRecorder::report | ( | ) |
Called before finishing the test run.
Definition at line 84 of file TestRecorder.php.
TestRecorder::skipped | ( | $test, | |
$subtest | |||
) |
Mark a test skipped.
Definition at line 78 of file TestRecorder.php.
TestRecorder::start | ( | ) |
Called at beginning of the parser test run.
Definition at line 40 of file TestRecorder.php.
TestRecorder::startSuite | ( | $path | ) |
Called before starting an input file.
Definition at line 52 of file TestRecorder.php.
TestRecorder::startTest | ( | $test | ) |
Called before starting a test.
Definition at line 46 of file TestRecorder.php.
TestRecorder::warning | ( | $message | ) |
Show a warning to the user.
Definition at line 72 of file TestRecorder.php.
Referenced by ParserTestRunner\__construct().