Hello all,
any idea for this error ?
Severity and Description Path Resource Location Creation Time Id
1067: Implicit coercion of a value of type flexunit.flexui:TestRunnerBase to an unrelated type org.flexunit.runner:IRunner. QuizzGame/src QuizzTest.mxml line 21 1253101842782 7688
in my project lib :
FlexUnit1Lib.swc
FlexUnit4.swc
fluint-1_2.swc
Hamcrest.swc
I created the QuizzTest.mxml file and impossible to compile due to the error specified before :
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns="*"
creationComplete="onCreationComplete()"
xmlns:flexunit="flexunit.flexui.*">
<!--
-->
<mx:Script>
<![CDATA[
import org.flexunit.runner.notification.IRunListener;
import org.flexunit.runner.FlexUnitCore;
import com.ao.quizzgame.test.CheckTestSuite;
import flexunit.framework.TestSuite;
private var flexUnitCore:FlexUnitCore;
// Create the test suite and run the tests
private function onCreationComplete():void
{
flexUnitCore=new FlexUnitCore();
flexUnitCore.runRunner(testRunner);
//This run statements executes the unit tests for the FlexUnit4 framework
flexUnitCore.run(CheckTestSuite);
}
]]>
</mx:Script>
<flexunit:TestRunnerBase id="testRunner"
width="100%"
height="100%"/>
</mx:Application >