Cradle
0.3.3
Simple library for creating Web-based applications
|
PhpUnit Tests Results visualisation. More...
Public Member Functions | |
__construct ($targetPath="") | |
setTargetPath ($targetPath="") | |
getTargetPath ($targetPath=NULL) | |
findAll ($targetPath=NULL) | |
toHtml () | |
getJsContent () | |
Data Fields | |
$cssContainerDivClass = "testcases" | |
$cssStatusOk = "status-ok" | |
$cssStatusFail = "status-fail" | |
$cssStatusError = "status-error" | |
$cssTestSuite = "testsuite" | |
$cssTestName = "testname" | |
$cssDescription = "description" | |
PhpUnit Tests Results visualisation.
Finds all xml-files with PHPUnit tests results, parse and represents it in HTML format.
To colorize HTML output use css-file with next styles:
css class ".testcases" can be changed by $cssContainerDivClass property.
__construct | ( | $targetPath = "" | ) |
Constructor It is a main method
string | $targetPath | Path to PHPUnit results xml-files. |
findAll | ( | $targetPath = NULL | ) |
To find all existing PHPUnit results xml-files.
string | $targetPath | (Option) new path to PHPUnit results xml-files. |
getJsContent | ( | ) |
Get Javascript content additions (Option)
getTargetPath | ( | $targetPath = NULL | ) |
Get path to PHPUnit results xml-files. (Or set new target path)
string | $targetPath | (Option) new path to PHPUnit results xml-files to set instead. |
setTargetPath | ( | $targetPath = "" | ) |
Set real path to PHPUnit results xml-files.
string | $targetPath | Path to PHPUnit results xml-files. |
toHtml | ( | ) |
Represents testSuites structure in HTML format.
$cssContainerDivClass = "testcases" |
string CSS class name for main container (div)
$cssStatusError = "status-error" |
string Name of attribute of HTML li tag if test have error
$cssStatusFail = "status-fail" |
string Name of attribute of HTML li tag if test is failed
$cssStatusOk = "status-ok" |
string Name of attribute of HTML li tag if test is ok