No Unittests. It is very strange but after releasing FlexUnit nothing is done to improve it to support async tests. Nothing is done to implement Mock Objects in AS (however as2lib has some implementation). That is why Flex community still cannot write neither functional tests nor unittests, and they don't write them. That is why XP or Agile is impossible. That is why continious integration is impossible.

Asynchronous testing is possible with Flex Unit - For instance when testing Delegates we:

1) Register the test case as the service the delegate is going to call and implement the fake remote method so that it stores it's arguments in an instance variable;

2) Get the testCase to implement Responder and pass it to the Delegate constructor.  the onResult and onFault, like the remote method, store their arguments in instance variables

3) Now all the arguments passed to services and responders by the delegate under test are accessible by our assert statements - not hard to set up.

There are quite a few Cairngorm development teams around Australia (RocketBoot's clients included) who would be surprised to find out they can't do Agile development with Cairngorm, since they've been doing it for a little while :-)  Sure some tweaks are necessary and there are some things I'd like to modify in the framework - but that's why I have an ongoing email thread with Stephen about these issues and possible solutions.  Cairngorm is not fixed in stone, and Stephen has always been keen to get contributions from the community.

BTW there is already another framework some people use for Flex development, check out ARP.  I'd prefer to see people contribute to existing frameworks first, and if you have to create a new one, have a clear point of difference in mind (not just the name, hell it's taken me months to learn to type Cairngorm quickly)

Cheers,
Robin

PS: See some of you in Hong Kong :-)

______________

Robin Hilliard
Director - RocketBoots Pty Ltd
Professional Services for Macromedia Technologies

For schedule/availability call Pamela Higgins:
w    +61 7 5451 0362
m    +61 419 677 151

or Direct:
m    +61 418 414 341
f    +61 2 9798 0070

 *** Let RocketBoots help upgrade your team to Studio 8! ***



On 15/11/2005, at 4:15 AM, Mykola Paliyenko wrote:

Dear Flexcoders.
I want to start here discussion about development enterprise
applications using Flex. Our company has choosen Cairngorm as a
framework to do it, but I believe it has some drawbacks
My comments are here:
http://jroller.com/page/mickolka?entry=cairngorm_is_bad
I'm new to Flex but not new to the ActionScript and _javascript_, also I
know lots of Java Web MVC frameworks so I have a vision about how
framework should look like to make your project succeed.
Thanx for any comments.

Regards,
Mykola





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to