Hi
I am trying to create a test runner app with both a CIListenter and a UIListener. For the UIListener I am trying to use the FlexUnitTestRunnerUI, however when I try to use it as shown in the SampleCIProject I get the following compilation error:
DescriptionResourcePathLocationType
1067: Implicit coercion of a value of type flexunit.flexui:FlexUnitTestRunnerUI to an unrelated type org.flexunit.runner.notification:IRunListener.ConsumerTests.mxml/PlayerDesktopTests/srcline 30Flex Problem
Looks like an API change somewhere. Any ideas?
Thx
- abey
=============================================
<?xml version="1.0" encoding="utf-8"?>
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
minWidth="955"
minHeight="600"
xmlns:flexui="flexunit.flexui.*"
creationComplete="onCreationComplete()">
<fx:Script>
<![CDATA[
import modelTestSuite.ModelTestSuite;
import org.flexunit.listeners.CIListener;
import org.flexunit.listeners.UIListener;
import org.flexunit.runner.FlexUnitCore;
public function currentRunTestSuite():Array
{
var testsToRun:Array=new Array();
testsToRun.push(modelTestSuite.ModelTestSuite);
return testsToRun;
}
private function onCreationComplete():void
{
var core:FlexUnitCore=new FlexUnitCore();
core.addListener(new CIListener());
core.addListener(new UIListener(testRunner));
core.run(currentRunTestSuite());
}
]]>
</fx:Script>
<flexui:FlexUnitTestRunnerUI id="testRunner"/>
</s:Application>