FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
|
class for making an agent unit or functional test More...
Public Member Functions | |
__construct ($unitTest) | |
MakeTest () | |
make tests in a directory and check output for errors and no tests. More... | |
CheckMakeErrors ($makeString) | |
check the output of make for errors More... | |
CheckCunitTestErrors ($makeString) | |
check the test output for cunit style failures More... | |
CheckPHPTestErrors ($makeString) | |
check for the word FAILURES in the output, this is what PHPUnit prints when there are any failures in the tests run. More... | |
CheckOtherErrors ($makeString) | |
Check for other common error strings. More... | |
printResults ($runResults) | |
print the result array. This will print any informative messages including erorrs that may have occured. More... | |
Public Attributes | |
$makeOutput = array() | |
Protected Attributes | |
$unitTest | |
$makeErrors | |
$cunitErrors | |
$phpunitErrors | |
class for making an agent unit or functional test
Definition at line 417 of file common-Test.php.
RunTest::CheckCunitTestErrors | ( | $makeString | ) |
check the test output for cunit style failures
string | $this-,>makeOutput | the test output |
Definition at line 581 of file common-Test.php.
RunTest::CheckMakeErrors | ( | $makeString | ) |
RunTest::CheckOtherErrors | ( | $makeString | ) |
Check for other common error strings.
This is an attempt to give the developer more information about what failed rather than the generic message 'some other error occured' Only the first pattern found will be reported.
string | $makeString |
Definition at line 628 of file common-Test.php.
RunTest::CheckPHPTestErrors | ( | $makeString | ) |
check for the word FAILURES in the output, this is what PHPUnit prints when there are any failures in the tests run.
string | $makeString,the | make output |
Definition at line 608 of file common-Test.php.
RunTest::MakeTest | ( | ) |
make tests in a directory and check output for errors and no tests.
This function assumes that the caller is cd'ed into the appropriate directory before being called.
string | $unitTest | the name of the module being tested, e.g. nomos |
Definition at line 451 of file common-Test.php.
RunTest::printResults | ( | $runResults | ) |
print the result array. This will print any informative messages including erorrs that may have occured.
array | $runResults |
The array has the format has described in MakeTest method.
Definition at line 657 of file common-Test.php.