FOSSology  4.4.0
Open Source License Compliance by Open Source Software
RunTest Class Reference

class for making an agent unit or functional test More...

Collaboration diagram for RunTest:
Collaboration graph

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
 

Detailed Description

class for making an agent unit or functional test

Author
markd

Definition at line 405 of file common-Test.php.

Member Function Documentation

◆ CheckCunitTestErrors()

RunTest::CheckCunitTestErrors (   $makeString)

check the test output for cunit style failures

Parameters
string$makeString$this->makeOutput the test output
Returns
boolean

Definition at line 567 of file common-Test.php.

◆ CheckMakeErrors()

RunTest::CheckMakeErrors (   $makeString)

check the output of make for errors

Returns
boolean

Definition at line 547 of file common-Test.php.

◆ CheckOtherErrors()

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.

Parameters
string$makeString

Definition at line 614 of file common-Test.php.

◆ CheckPHPTestErrors()

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.

Parameters
string$makeString,themake output
Returns
boolean

Definition at line 594 of file common-Test.php.

◆ MakeTest()

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.

Returns
array The array has the folowing format: 'name'=> $unitTest 'make' => boolean, true for make errors false for none 'cunit' => boolean, true for cunit failures false for none 'phpunit' => boolean, true for phpunit failures false for none 'notest' => boolean, false for no tests for that module, true for tests 'nomosfunc' => None-0 for nomos functional failures

Definition at line 437 of file common-Test.php.

◆ printResults()

RunTest::printResults (   $runResults)

print the result array. This will print any informative messages including erorrs that may have occured.

Parameters
array$runResults
Returns
volid

The array has the format has described in MakeTest method.

Definition at line 643 of file common-Test.php.


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