Package | asunit.textui |
Class | public class AirRunner |
Inheritance | AirRunner mx.core.WindowedApplication |
Property | Defined by | ||
---|---|---|---|
runner : TestRunner | AirRunner |
Method | Defined by | ||
---|---|---|---|
start(testCase:Class, testMethod:String = null, showTrace:Boolean = false):TestResult
| AirRunner |
Method | Defined by | ||
---|---|---|---|
createChildren():void
| AirRunner |
runner | property |
protected var runner:TestRunner
createChildren | () | method |
protected override function createChildren():void
start | () | method |
public function start(testCase:Class, testMethod:String = null, showTrace:Boolean = false):TestResult
Parameters
testCase:Class |
|
testMethod:String (default = null )
|
|
showTrace:Boolean (default = false )
|
TestResult |
<?xml version="1.0" encoding="utf-8"?> <AirRunner xmlns="asunit.textui.*" xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="runTests()" > <!-- Import Application Styles --> <mx:Style source="MyProjectSkin.css" /> <mx:Script> <![CDATA[ import asunit.textui.TestRunner; public function runTests():void { // start(clazz:Class, methodName:String, showTrace:Boolean) // NOTE: sending a particular class and method name will // execute setUp(), the method and NOT tearDown. // This allows you to get visual confirmation while developing // visual entities start(AllTests, null, TestRunner.SHOW_TRACE); } ]]> </mx:Script> </AirRunner>