...
'''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
Finally, 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: Wiki Markup
Code Block | ||||
---|---|---|---|---|
| ||||
[Suite] [RunWith("org.flexunit.runners.Suite")] public class SampleSuite { public var otherSuite1 : SampleOtherSuite; public var test : SampleTest; public var test1 : SampleAsyncTest; } |
...