Created
December 23, 2008 22:25
-
-
Save kfitzpatrick/39486 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" | |
creationComplete="onCreationComplete()"> | |
<!--can't use velocity, got: | |
java.io.InvalidClassException: org.apache.velocity.runtime.parser.node.ASTprocess; class invalid for deserialization--> | |
<mx:Script> | |
<![CDATA[ | |
import flexunit.junit.JUnitTestRunner; | |
import flexunit.framework.TestSuite; | |
import com.allurent.coverage.runtime.CoverageManager; | |
import com.cimians.openPyro.utils.TestArrayUtil; | |
[Bindable] | |
private var runner : JUnitTestRunner; | |
private function onCreationComplete() : void { | |
status.text = "Please wait running test suite..."; | |
runner = new JUnitTestRunner(); | |
runner.port = 13539; | |
runner.run( createSuite(), onTestComplete ); | |
} | |
private function onTestComplete() : void { | |
status.text = "Finished running test suite."; | |
CoverageManager.exit(); | |
fscommand( "quit" ); | |
} | |
private function createSuite() : TestSuite { | |
var testSuite : TestSuite = new TestSuite(); | |
addTest( TestArrayUtil); | |
return testSuite; | |
} | |
]]> | |
</mx:Script> | |
<mx:Label id="status" /> | |
</mx:Application> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment