|
From: Ian T. <Ia...@mo...> - 2011-03-14 10:36:16
|
Hi Xpol, 1) Download the framework release from github: http://github.com/lukebayes/asunit/zipball/release 2) Unzip 3) Create a new as2 project in FlashDevelop 4) Add the /as25/src directory to your classpath * For Global: Tools -> Global Classpaths... (Ctrl+F9) * For Project: Project -> Properties... -> Classpaths 5) For the purpose of this example add the /as25/test directory to your project classpath (as above) 6) Edit the entry point (public static main) in Main.as : public static function main(swfRoot:MovieClip):Void { var testRunner:TestRunner = new TestRunner(swfRoot); testRunner.start(AllTests); } 7) Test the Movie: Project -> Test Movie (F5) You should see the graphic test runner UI, 47 tests should pass. Look at AllTests for an idea of how to create TestSuites. The tutorials listed on the AsUnit website (Getting Started with AsUnit) will give you more details. Thanks, Ian Tyrrell ________________________________ From: Xpol Wan [mailto:xp...@gm...] Sent: 14 March 2011 04:09 To: asu...@li... Subject: Re: [Asunit-users] Is there any start up guide for current stable release? Hi, Is any one who can help with this please? I needs to setup with asunit as2.5 flashdevelop. Thanks! Best Regards! Xpol Wan On Fri, Mar 11, 2011 at 10:43 AM, Xpol Wan <xp...@gm...<mailto:xp...@gm...>> wrote: Hi, I'm new here. I'm using current stable release form for a as2 project. But i found that the guide listed on http://asunit.org/ out of date. I can only found this page: http://www.flashcodersny.org/wordpress/?p=103 Which use a msi installer which was created 2007. And the installed asuint.exe seems does not work on Windows 7. My question is how can i setup a as2 (or as2.5) project using asuint and FlashDevelop. Best Regards! Xpol Wan |