Merge branch 'master' into mapquest
[potlatch2.git] / tests / src / HalcyonTestRunner.mxml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <mx:Application
4   xmlns:mx="http://www.adobe.com/2006/mxml"
5   xmlns:flexUnitUIRunner="http://www.adobe.com/2009/flexUnitUIRunner"
6   minWidth="955" minHeight="600"
7   creationComplete="onCreationComplete();">
8
9   <mx:Script>
10   <![CDATA[
11   
12       import org.flexunit.internals.TextListener;
13       import org.flexunit.internals.TraceListener;
14       import org.flexunit.listeners.CIListener;
15       import org.flexunit.listeners.UIListener;
16       import org.flexunit.runner.FlexUnitCore;
17       import org.mockito.integrations.flexunit4.MockitoClassRunner;
18
19       private var core:FlexUnitCore;
20
21       private var mockitoRunner:MockitoClassRunner;
22
23       private function onCreationComplete():void
24       {
25       core = new FlexUnitCore();
26       // If you don't need graphical test results, comment out the line
27       // below and the MXML declaring the TestRunnerBase.
28       core.addListener( new UIListener( uiListener ) );
29       // Listener to support continuous integration servers
30       core.addListener( new CIListener() );
31       // If you would like to see text output in verbose mode,
32       // uncomment either of the follow listeners
33       //core.addListener( new TraceListener() ); // For AS3 Projects
34       //core.addListener( TextListener.getDefaultTextListener( LogEventLevel.DEBUG ) ); // For Flex Projects
35       core.run( AllHalcyonTests );
36       }
37   ]]>
38   </mx:Script>
39
40   <flexUnitUIRunner:TestRunnerBase id="uiListener" width="100%" height="100%" />
41
42 </mx:Application>