MediaWiki  REL1_24
DbTestPreviewer Class Reference
Inheritance diagram for DbTestPreviewer:
Collaboration diagram for DbTestPreviewer:

List of all members.

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.

Detailed Description

Definition at line 111 of file testHelpers.inc.


Constructor & Destructor Documentation

This should be called before the table prefix is changed.

Parameters:
TestRecorder$parent

Reimplemented from TestRecorder.

Definition at line 122 of file testHelpers.inc.

References TestRecorder\$parent, and wfGetLBFactory().


Member Function Documentation

Commit transaction and clean up for result recording.

Reimplemented from TestRecorder.

Definition at line 304 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).

Parameters:
string$testname
string$after
Returns:
string

Definition at line 238 of file testHelpers.inc.

References $conds, $pre, and array().

Referenced by report().

DbTestPreviewer::record ( test,
result 
)

Called after each test.

Parameters:
string$test
bool$result

Reimplemented from TestRecorder.

Reimplemented in DbTestRecorder.

Definition at line 150 of file testHelpers.inc.

References $result, and $test.

Called before finishing the test run.

Reimplemented from TestRecorder.

Definition at line 155 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 134 of file testHelpers.inc.

References array(), and print.


Member Data Documentation

DbTestPreviewer::$curRun [protected]

Definition at line 114 of file testHelpers.inc.

DbTestPreviewer::$db [protected]

Definition at line 113 of file testHelpers.inc.

DbTestPreviewer::$lb [protected]

Definition at line 112 of file testHelpers.inc.

DbTestPreviewer::$prevRun [protected]

Definition at line 115 of file testHelpers.inc.

DbTestPreviewer::$results [protected]

Definition at line 116 of file testHelpers.inc.


The documentation for this class was generated from the following file: