-
Notifications
You must be signed in to change notification settings - Fork 42
/
SwizTestRunner.mxml
49 lines (38 loc) · 1.6 KB
/
SwizTestRunner.mxml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?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/halo"
xmlns:flexUnitUIRunner="http://www.adobe.com/2009/flexUnitUIRunner"
minWidth="955" minHeight="600"
creationComplete="runTests();"
xmlns:flexui="flexunit.flexui.*">
<fx:Script>
<![CDATA[
import mx.logging.LogEventLevel;
import org.flexunit.internals.TextListener;
import org.flexunit.internals.TraceListener;
import org.flexunit.listeners.CIListener;
import org.flexunit.listeners.UIListener;
import org.flexunit.runner.FlexUnitCore;
import testSuites.ReflectionTestsSuite;
import testSuites.StorageTestSuite;
private var core:FlexUnitCore;
public function runTests():void
{
core = new FlexUnitCore();
// If you don't need graphical test results, comment out the line
// below and the MXML declaring the TestRunnerBase.
core.addListener( new UIListener( uiListener ) );
// Listener to support continuous integration servers
core.addListener( new CIListener() );
// If you would like to see text output in verbose mode,
// uncomment either of the follow listeners
//core.addListener( new TraceListener() ); // For AS3 Projects
//core.addListener( TextListener.getDefaultTextListener( LogEventLevel.DEBUG ) ); // For Flex Projects
core.run( ReflectionTestsSuite );
core.run( StorageTestSuite );
}
]]>
</fx:Script>
<flexUnitUIRunner:TestRunnerBase id="uiListener" width="100%" height="100%" />
</s:Application>