Package | flexunit.framework |
Class | public class TestSuite |
Implements | Test |
TestSuite
is a collection of tests.
See also
Property | Defined by | ||
---|---|---|---|
className : String [read-only]
Returns the fully qualified class name.
| TestSuite | ||
name : String | TestSuite | ||
testArrayList : Collection | TestSuite |
Method | Defined by | ||
---|---|---|---|
TestSuite(param:Object = null)
The TestSuite constructor, provided with the test to be run.
| TestSuite | ||
Adds a test to this test suite.
| TestSuite | ||
addTestSuite(testClass:Class):void
Wraps a test inside a
TestSuite and adds it to this test suite. | TestSuite | ||
countTestCases():Number
Iterates all tests in this suite to calculate the total number of tests in this suite.
| TestSuite | ||
getTestMethodNames():Array
Returns the names of the test methods for this test.
| TestSuite | ||
getTests():Array
Returns all the tests in this test suite as an
Array
| TestSuite | ||
runNext(result:TestResult):void
| TestSuite | ||
runWithResult(result:TestResult):void
Runs the test, populating
result with the test results. | TestSuite | ||
testCount():Number
The number of tests added to this suite.
| TestSuite | ||
toString():String
| TestSuite |
className | property |
className:String
[read-only]Returns the fully qualified class name.
Implementation public function get className():String
name | property |
public var name:String
testArrayList | property |
public var testArrayList:Collection
TestSuite | () | constructor |
public function TestSuite(param:Object = null)
The TestSuite constructor, provided with the test to be run.
Parametersparam:Object (default = null ) — test class to be run. Can be a TestCase , another TestSuite
or any class that implements the Test interface.
|
addTest | () | method |
public function addTest(test:Test):void
Adds a test to this test suite.
Parameterstest:Test — Test instance to be added.
|
addTestSuite | () | method |
public function addTestSuite(testClass:Class):void
Wraps a test inside a TestSuite
and adds it to this test suite.
testClass:Class — Class that extends TestCase which will be added as a test suite.
|
countTestCases | () | method |
public function countTestCases():Number
Iterates all tests in this suite to calculate the total number of tests in this suite.
ReturnsNumber — A Number containing the count of all tests in this suite.
|
getTestMethodNames | () | method |
public function getTestMethodNames():Array
Returns the names of the test methods for this test.
ReturnsArray — Array of method names for this test
|
getTests | () | method |
public function getTests():Array
Returns all the tests in this test suite as an Array
Array — An Array containing the tests in this test suite.
|
runNext | () | method |
runWithResult | () | method |
public function runWithResult(result:TestResult):void
Runs the test, populating result
with the test results.
result:TestResult — TestResult instance to be populated with the test results.
|
testCount | () | method |
public function testCount():Number
The number of tests added to this suite.
ReturnsNumber — A Number containing the number of tests added to this suite.
|
toString | () | method |
public function toString():String
Returns
String |