As far as I can see this requires three changes to sprout mxml bundle:
1.
ADDED FILE:
/Library/Ruby/Gems/1.8/gems/sprout-mxml-bundle-0.1.11/lib/sprout/
generators/project/templates/XMLRunner.mxml
--------FILE CONTENTS---------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<TestRunner
xmlns="asunit.textui.*"
xmlns:mx="
http://www.adobe.com/2006/mxml"
addedToStage="runTests()">
<mx:Script>
<![CDATA[
import asunit.textui.TestRunner;
import asunit.textui.XMLResultPrinter;
private 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
setPrinter(new XMLResultPrinter());
start(AllTests, null, TestRunner.SHOW_TRACE);
}
]]>
</mx:Script>
</TestRunner>
---------------------------------------------------------------------------------------------------------------
2.
ADDED LINE:
m.template 'XMLRunner.mxml', File.join(base, 'src', "#{class_name}
XMLRunner.mxml")
TO FILE:
/Library/Ruby/Gems/1.8/gems/sprout-mxml-bundle-0.1.11/lib/sprout/
generators/project/project_generator.rb
3.
ADDED LINES:
desc 'Compile and run the test harness for Ci'
ci :cruise
TO FILE:
/Library/Ruby/Gems/1.8/gems/sprout-mxml-bundle-0.1.11/lib/sprout/
generators/project/templates/rakefile.rb
-A