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 1221 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 1231 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 1402 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 1337 of file parserTests.inc.

Referenced by report().

DbTestPreviewer::record ( test,
result 
)

Reimplemented from TestRecorder.

Reimplemented in DbTestRecorder.

Definition at line 1258 of file parserTests.inc.

References $result, and $test.

DbTestPreviewer::report (  ) 

Reimplemented from TestRecorder.

Definition at line 1263 of file parserTests.inc.

References $code, $res, $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 1242 of file parserTests.inc.

References $wgDBtype, and print.


Member Data Documentation

DbTestPreviewer::$curRun [protected]

run ID number for the current run

Definition at line 1224 of file parserTests.inc.

DbTestPreviewer::$db [protected]

Database connection to the main DB.

Definition at line 1223 of file parserTests.inc.

DbTestPreviewer::$lb [protected]

Database load balancer.

Definition at line 1222 of file parserTests.inc.

DbTestPreviewer::$prevRun [protected]

run ID number for the previous run, if any

Definition at line 1225 of file parserTests.inc.

DbTestPreviewer::$results [protected]

Result array.

Definition at line 1226 of file parserTests.inc.


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

Generated on Sat Apr 30 22:57:35 2011 for MediaWiki by  doxygen 1.5.9