Skip to main content
Participant
October 2, 2008
Question

Nesting TestSuites

  • October 2, 2008
  • 1 reply
  • 610 views
I've read FlexUnit can next TestSuites, but I can't seem to get it to work. I haven't seen any examples of this either, so not sure what I'm doing wrong. What I have so far is a master suite that adds several other suites, all of which add a bunch of TestCases. I'm adding them via addTestSuite().

Any suggestions?
This topic has been closed for replies.

1 reply

Participant
October 3, 2008
Hi Eric,

You can do it this way:

public class AllTests extends TestSuite
{
public function AllTests ()
{
// Add your tests here...
this.addTest( new TestSuite( TestModelX ) ); // TestCase
this.addTest( new TestSuite( TestViewX ) ); // TestCase
this.addTest( new AllViewTests() ); // TestSuite
}
}

Cheers,