DbTestPreviewer Class Reference

Inherits TestRecorder.

Inherited by DbTestRecorder.

List of all members.

Public Member Functions

 __construct ($parent)
 This should be called before the table prefix is changed.
 start ()
 Set up result recording; insert a record for the run with the date and all that fun stuff.
 record ($test, $result)
 report ()
 end ()
 Commit transaction and clean up for result recording.

Protected Attributes

 $lb
 Database load balancer.
 $db
 Database connection to the main DB.
 $curRun
 run ID number for the current run
 $prevRun
 run ID number for the previous run, if any
 $results
 Result array.

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 1203 of file parserTests.inc.


Constructor & Destructor Documentation

DbTestPreviewer::__construct ( parent  ) 

This should be called before the table prefix is changed.

Reimplemented from TestRecorder.

Definition at line 1213 of file parserTests.inc.

References TestRecorder::$parent, and wfGetLBFactory().


Member Function Documentation

DbTestPreviewer::end (  ) 

Commit transaction and clean up for result recording.

Reimplemented from TestRecorder.

Definition at line 1384 of file parserTests.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 1319 of file parserTests.inc.

References $conds.

Referenced by report().

DbTestPreviewer::record ( test,
result 
)

Reimplemented from TestRecorder.

Reimplemented in DbTestRecorder.

Definition at line 1240 of file parserTests.inc.

References $result, and $test.

DbTestPreviewer::report (  ) 

Reimplemented from TestRecorder.

Definition at line 1245 of file parserTests.inc.

References $code, $count, $res, $row, $test, getTestStatusInfo(), print, and printf().

DbTestPreviewer::start (  ) 

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 1224 of file parserTests.inc.

References $wgDBprefix, $wgDBtype, and print.


Member Data Documentation

DbTestPreviewer::$curRun [protected]

run ID number for the current run

Definition at line 1206 of file parserTests.inc.

DbTestPreviewer::$db [protected]

Database connection to the main DB.

Definition at line 1205 of file parserTests.inc.

DbTestPreviewer::$lb [protected]

Database load balancer.

Definition at line 1204 of file parserTests.inc.

DbTestPreviewer::$prevRun [protected]

run ID number for the previous run, if any

Definition at line 1207 of file parserTests.inc.

DbTestPreviewer::$results [protected]

Result array.

Definition at line 1208 of file parserTests.inc.


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

Generated on Sat Sep 5 02:08:36 2009 for MediaWiki by  doxygen 1.5.9