Flash Builder:更改单位测试的默认套件?
-
09-10-2019 - |
题
使用PureeMVC在Flash Builder 4中运行单元测试时,更改默认套件的步骤是什么?
解决方案 2
为了更改或添加到测试套件中,我必须更改应用程序组件中调解人的启动事件的侦听器中的测试套件。
override public function handleNotification( note:INotification ):void
{
switch ( note.getName() )
{
case NotificationConstants.STARTUP_SUCCESS:
flexUnitApplication.testRunner.runWithFlexUnit4Runner(currentRunTestSuite(), "MyTests");
break;
}
}
private function currentRunTestSuite():Array
{
var testsToRun:Array = new Array();
testsToRun.push(MyTestSuite);
return testsToRun;
}
其他提示
创建新的测试用例或新的测试套件时,您可以从菜单顶部选择Flexunit4或Flexunit1。我环顾四周,没有看到任何预选一个或另一个先验选择的方法。
不隶属于 StackOverflow