Finally, a TestSuite is a collection of [TestCases] and possibly other TestSuites. A test suite is a simple class marked with a [Suite] and [RunWith("org.flexunit.runners.Suite")] metadata tags. The tests and other suites that you want to have run inside this suite must be declared as public (and only public) variables.

An example TestSuite

package sampleSuite
{
     import sampleSuite.tests.SampleOtherSuite;
     import sampleSuite.tests.SampleTest;
     import sampleSuite.tests.SampleAsyncTest;

     [Suite]
     [RunWith("org.flexunit.runners.Suite")]
     public class SampleSuite
     {
          public var otherSuite1 : SampleOtherSuite;    
          public var test : SampleTest;
          public var test1 : SampleAsyncTest;   
     }
}
  • No labels