_run
private
static
Object
_run
(
testObject
)
Runs a test case or test suite, returning the results.
- Parameters:
-
testObject <YAHOO.tool.TestCase|YAHOO.tool.TestSuite>
The test case or test suite to run.
- Returns:
Object
- Results of the execution with properties passed, failed, and total.
_runTestCase
private
static
Object
_runTestCase
(
testCase
)
Runs a given test case.
- Parameters:
-
testCase <YAHOO.tool.TestCase>
The test case to run.
- Returns:
Object
- Results of the execution with properties passed, failed, and total.
_runTestSuite
private
static
Object
_runTestSuite
(
testSuite
)
Runs all the tests in a test suite.
- Parameters:
-
testSuite <YAHOO.tool.TestSuite>
The test suite to run.
- Returns:
Object
- Results of the execution with properties passed, failed, and total.
add
void
add
(
testObject
)
Adds a test suite or test case to the list of test objects to run.
- Parameters:
-
testObject <object>
Either a TestCase or a TestSuite that should be run.
- Returns:
void