Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

'''Note:''' In a TestCase tests may be executed in ANY order. If you would like to specify an order to the tests, you may do so, see order for instructions on how to do so.

Test Suite

Wiki MarkupFinally, a [TestSuite] is a collection of [TestCase|TestCases] and possibly other [TestSuite|FlexUnit TestSuites]. A test suite is a simple class marked with a [\[Suite\] | FlexUnit Metadata#Suite], and \[RunWith\|[RunWith("org.flexunit.runners.Suite")|RunWith("org.flexunit.runners.Suite")\]] [FlexUnitMetadata |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. For example:

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

...