implementing cruise in mxml bundle

1 view
Skip to first unread message

nodename

unread,
Mar 9, 2009, 2:51:05 PM3/9/09
to ProjectSprouts
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

Luke Bayes

unread,
Mar 9, 2009, 3:01:38 PM3/9/09
to project...@googlegroups.com
This is great - thanks!

Would you consider digging into the generator and adding this stuff to
the mxml bundle directly?

Just grab the sources from github at:
http://github.com/lukebayes/project-sprouts


Thanks again!


Luke
--
Thanks,

Luke Bayes
510 459-9053
http://patternpark.com

Alan Shaw

unread,
Mar 9, 2009, 3:35:01 PM3/9/09
to project...@googlegroups.com
OK, done. Please test...

-A
Reply all
Reply to author
Forward
0 new messages