Quantcast
Channel: Adobe Community : Popular Discussions - FlexUnit
Viewing all articles
Browse latest Browse all 25673

Issues with adding FlexUnitTestRunnerUI to FlexUnitCore

$
0
0

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"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
   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>

Viewing all articles
Browse latest Browse all 25673

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>