assertTrue is the professional blog of Luke Bayes and Ali Mills

Getting Started with AsUnit

Posted by: Luke Bayes Tue, 16 Sep 2008 16:10:00 GMT

Kelly Brown has put together a great article to help folks get started with AsUnit over on the Inside RIA blog.

Definitely check it out if you’re interested.

Thanks Kelly!

Tags ,  | no comments

Code Coverage tool with AsUnit!

Posted by: Luke Bayes Tue, 12 Aug 2008 14:51:00 GMT

I haven’t tried it myself, but it seems Ryan Williamson discovered that the new FlexCover tool from Alex Uhlmann and Joe Berkovitz also works with AsUnit!

Check out his post to learn more.

Tags  | 1 comment

Getting Started with ActionScript 2.0 and AsUnit

Posted by: Luke Bayes Mon, 12 May 2008 06:38:00 GMT

It seems a “London/Cambridge-based Actionscript developer” posted an excellent tutorial for ActionScript 2.0 and AsUnit.

Just wanted to make sure folks could find it!

Tags  | 2 comments

Developing Visual Components with AsUnit

Posted by: Luke Bayes Tue, 22 Jan 2008 17:07:00 GMT

I’ve been meaning to write up a huge tutorial on this subject for years now. Since I still haven’t gotten around to it, I’m just going to jam out some quick notes for those of you that might not have caught this stuff buried in the AsUnit 2.5 and AsUnit 3.0 sources.

There are a handful of features in AsUnit that help us develop visual entities. These features are:

  • TestRunner.start method
  • addChild/removeChild TestCase helpers
  • addAsync helper method

For the sake of getting this thing done, I’m not going to go into insane amounts of detail here, so here’s the quick and dirty.

Read more...

Tags  | 4 comments | no trackbacks

Static Classes, Singletons and the Observer Pattern

Posted by: Luke Bayes Sun, 15 Jul 2007 02:04:00 GMT

Over the years, Ali and I have spent quite a lot of time trying to sort out when to use static classes, when to use the Singleton pattern and when to do the work required to avoid them.

There has been a long and ongoing discussion in the OOP and patterns community on this subject by people far more intelligent and experienced than I am. It is really their knowledge and experience that will be essentially repackaged for ActionScript development here.

Following are the primary arguments that compel me to look for a better way.

Read more...

Tags , , ,  | 3 comments | no trackbacks

BDD: Behavio(u)r-Driven Development in AS2

Posted by: Ali Mills Thu, 03 May 2007 05:50:00 GMT

Eloy Duran posted an interesting idea on his blog today about behaviour-driven development in ActionScript 2. According to http://behaviour-driven.org/:

Behaviour-Driven Development (BDD) is an evolution in the thinking behind TestDrivenDevelopment and AcceptanceTestDrivenPlanning.

It pulls together strands from TestDrivenDevelopment and DomainDrivenDesign into an integrated whole, making the relationship between these two powerful approaches to software development more evident.

...

For people familiar with the concept of DomainDrivenDesign, you could consider BDD to be a UbiquitousLanguage for software development.

Interesting…

Eloy’s idea, ASpec, is based on Ruby’s BDD framework RSpec. If you’re a student of test-driven development (TDD) or an AsUnit user, you might want to check it out.

Tags  | no comments | no trackbacks

Introducing AsProject!

Posted by: Luke Bayes Wed, 04 Apr 2007 19:15:00 GMT

UPDATE: The new versions of Sprouts actually pull down and install the Flex SDK automatically!

UPDATE: AsProject has been refactored, renamed and moved, development is ongoing at the new location for “Sprouts”.

UPDATE: Be sure to check out the updated screencasts at http://projectsprouts.org/screencasts.html.

I’m elated to finally announce AsProject!

This is a cross platform, open source ActionScript development tool set that I’ve been working on for the past couple of months.

AsProject automates a variety of tasks including the creation of projects, classes, test cases, test suites, and swfmill libraries. It automates the download, installation and configuration of the debug flash player and many open source tools. AsProject also includes sophisticated build tools written in rake to automate build processes.

If this sounds interesting to you check out the video demo!

Read more...

Tags , , ,  | 37 comments | 3 trackbacks

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

AsUnit XUL UI for Mac?!

Posted by: Luke Bayes Fri, 27 Oct 2006 23:54:00 GMT

I’m sure there is an easier way to make this happen, but I was really glad to hear that someone figured out how to get our XUL UI utility running on MAC OSX!

Many thanks to David Drescher for working through this and posting the results of his efforts to the list, following is what he found:

---8<---

I’ve been messing around with getting the XUL ui working in os x 10.4 and I thought I would pass what I learned on to anyone who’s interested:

It looks like with the new 1.8.0.4 release of XULRunner won’t let you start up the asunit ui from the command line. Instead you now have to use the xulrunner-bin binary to first install the application from the terminal:

$ xulrunner-bin—install-app /path/to/XULUI-Mac/

This creates a folder /Applications/asunit/ which contains a new asunit.app os x application folder. You can now just double click on the application to launch the ui.

(note: the xulrunner-bin binary can be found in /Library/Frameworks/XUL.framework/ once you’ve installed XULRunner).

It should be possible to use the provided application structure to create a standalone mac app to distribute via dmg if you also include the XULRunner framework.

-Dave

--->8---

Hopefully we’ll have a simpler binary soon, but in lieu of that, this should at least help the Mac folks get some traction.

Thanks Dave!

Tags  | no comments

AsUnit framework 'as2' vs 'as25'?

Posted by: Luke Bayes Tue, 24 Oct 2006 00:10:00 GMT

I just got a really good question on the AsUnit-users mailing list and as I was answering it, the answer kind of turned into a more bloggy-thing, so here goes:

The question:

“Ok. So. If I use the as25 version of the code (asunit vs. com.asunit), I don’t seem to get output to the builtin AsUnit UI panel in the IDE (which i installed via the .mxp). Is there a way to make the builtin UI work with the as25 codebase? If not, what should I be using to see the status of the unit-tests when using the flash IDE?”

This is a great question and I’m really sorry that we haven’t been more clear about what the different AsUnit framework builds are and why they exist…

Read more...

Tags  | no comments

Older Posts

Older posts: 1 2