Skip to main content
Participant
Oct 2, 2008 8:13 PM UTC
Question

Nesting TestSuites

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 is closed to new replies. Start a new post to keep the conversation going.

1 reply

Participant
Oct 3, 2008 8:41 AM UTC
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,
Translate