Then you pass this suite into the test runner like so:
// Metadata tells FlexUnit4 that this is a Suite and
// specifies a runner to use with it
[Suite]
[RunWith("org.flexunit.runners.Suite")]
public class FlexUnit4TestSuite
{
//simply make public variables inside the suite
//with the test cases or suites that you want
//run.
public var baseMediatorTest:BaseMediatorTest;
// ...
}
public function onCreationComplete(evt:Event):void
{
core = new FlexUnitCore();
core.addListener(new UIListener(uiListener));
core.addListener(new CIListener(1028, "localhost"));
core.run( FlexUnit4TestSuite )
}
Much more maintainable.
No comments:
Post a Comment