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

Public Member Functions

 __construct ( $parent)
 This should be called before the table prefix is changed. More...
 
 end ()
 Commit transaction and clean up for result recording. More...
 
 record ( $test, $result)
 Called after each test. More...
 
 report ()
 Called before finishing the test run. More...
 
 start ()
 Set up result recording; insert a record for the run with the date and all that fun stuff. More...
 
- Public Member Functions inherited from TestRecorder
 reportPercentage ( $success, $total)
 

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. More...
 

Additional Inherited Members

- Public Attributes inherited from TestRecorder
 $parent
 
 $term
 

Detailed Description

Definition at line 101 of file testHelpers.inc.

Constructor & Destructor Documentation

◆ __construct()

DbTestPreviewer::__construct (   $parent)

This should be called before the table prefix is changed.

Reimplemented from TestRecorder.

Definition at line 111 of file testHelpers.inc.

References TestRecorder\$parent, DB_MASTER, and wfGetLBFactory().

Member Function Documentation

◆ end()

DbTestPreviewer::end ( )

Commit transaction and clean up for result recording.

Reimplemented from TestRecorder.

Definition at line 290 of file testHelpers.inc.

◆ getTestStatusInfo()

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 224 of file testHelpers.inc.

References $pre, and array().

Referenced by report().

◆ record()

DbTestPreviewer::record (   $test,
  $result 
)

Called after each test.

Reimplemented from TestRecorder.

Reimplemented in DbTestRecorder.

Definition at line 139 of file testHelpers.inc.

References $test.

◆ report()

DbTestPreviewer::report ( )

Called before finishing the test run.

Reimplemented from TestRecorder.

Definition at line 144 of file testHelpers.inc.

References $count, $res, $test, array(), as, and getTestStatusInfo().

◆ start()

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 123 of file testHelpers.inc.

References array(), and start.

Member Data Documentation

◆ $curRun

DbTestPreviewer::$curRun
protected

Definition at line 104 of file testHelpers.inc.

◆ $db

DbTestPreviewer::$db
protected

Definition at line 103 of file testHelpers.inc.

◆ $lb

DbTestPreviewer::$lb
protected

Definition at line 102 of file testHelpers.inc.

◆ $prevRun

DbTestPreviewer::$prevRun
protected

Definition at line 105 of file testHelpers.inc.

◆ $results

DbTestPreviewer::$results
protected

Definition at line 106 of file testHelpers.inc.


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