Packageflexunit.framework
Classpublic class TestSuite
ImplementsTest

A TestSuite is a collection of tests.

See also

Test
flexunit.flexui.TestRunner
flexunit.extensions.TestSetup


Public Properties
 PropertyDefined by
  className : String
[read-only] Returns the fully qualified class name.
TestSuite
  name : String
TestSuite
  testArrayList : Collection
TestSuite
Public Methods
 MethodDefined by
  
TestSuite(param:Object = null)
The TestSuite constructor, provided with the test to be run.
TestSuite
  
addTest(test:Test):void
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
  
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
  
Runs the test, populating result with the test results.
TestSuite
  
testCount():Number
The number of tests added to this suite.
TestSuite
  
toString():String
TestSuite
Property detail
classNameproperty
className:String  [read-only]

Returns the fully qualified class name.

Implementation
    public function get className():String
nameproperty 
public var name:String
testArrayListproperty 
public var testArrayList:Collection
Constructor detail
TestSuite()constructor
public function TestSuite(param:Object = null)

The TestSuite constructor, provided with the test to be run.

Parameters
param:Object (default = null) — test class to be run. Can be a TestCase, another TestSuite or any class that implements the Test interface.
Method detail
addTest()method
public function addTest(test:Test):void

Adds a test to this test suite.

Parameters
test:TestTest 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.

Parameters
testClass:ClassClass 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.

Returns
Number — 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.

Returns
Array — Array of method names for this test
getTests()method 
public function getTests():Array

Returns all the tests in this test suite as an Array

Returns
Array — An Array containing the tests in this test suite.
runNext()method 
public function runNext(result:TestResult):voidParameters
result:TestResult
runWithResult()method 
public function runWithResult(result:TestResult):void

Runs the test, populating result with the test results.

Parameters
result:TestResultTestResult instance to be populated with the test results.
testCount()method 
public function testCount():Number

The number of tests added to this suite.

Returns
Number — A Number containing the number of tests added to this suite.
toString()method 
public function toString():String

Returns
String