assertTrue is the professional blog of Luke Bayes and Ali Mills

Good tutorial for AsUnit!

Posted by Luke Bayes Tue, 13 Mar 2007 03:04:00 GMT

Someone finally put together a solid tutorial for getting started with AsUnit.

Big thanks go out to Tim Beynart for getting ‘er done!

http://www.flashcodersny.org

Tags  | 6 comments

Comments

  1. Jonathan replied: Avatar This tutorial has several errors. Its reference to a main function, that doesn't exist, forgetting to mention that asunit AND your classes folder need added into your flash path, and that textExample.main(); in itself will not function properly in frame one as actionscript. Other than that, its useful.
    Posted: about 18 hours later.
  2. Tim commented: Avatar Thanks for catching that... I fixed the tutorial.
    Posted: about 20 hours later.
  3. Robert replied: Avatar What about using ASUnit with AS3? I can't seem to get the ASUnit classes to be recognized by mxmlc even though I've specified a path to them.
    Posted: 19 days later.
  4. Robert commented: Avatar Nevermind, I figured out my problems. I needed to specify the parent directory of the asunit classes namely "as3" in the "-source-path" parameter for the compiler. I also grabbed the "comm" folder from the asunit repository, and I found what I need ed in the comm\training\yahoo folder. Glad to find some examples. You might consider putting them someplace more easily accessible. Hopefully I will get a chance to do a writeup on this soon so others can benefit from my experience.
    Posted: 24 days later.
  5. Marcus replied: Avatar I've followed the tutorial, but just can't get a basic test running with the AS3 XUL and Flash 9 CS3. I get this when trying to compile: TypeError: Error #1009: Cannot access a property or method of a null object reference. at asunit.textui::TestRunner/asunit.textui:TestRunner::addedHandler() at flash.display::DisplayObjectContainer/addChild() at asunit.textui::TestRunner/setPrinter() at asunit.textui::TestRunner/doRun() at asunit.textui::TestRunner/start() at MyTestRunner$iinit() at MyTestRunner$/main() at TestRunner_fla::MainTimeline/TestRunner_fla::frame1() Any thoughts??
    Posted: 51 days later.
  6. Marcus commented: Avatar Are there any forums or anything that I can ask about things like this?
    Posted: 51 days later.

Your Reply

Comment Form.

Fields denoted with an "*" are required.