Mike,
 
Alistair McLeod wrote a tutorial to using FlexUnit *way* back when, which you can find here:
 
 
The discussion of "testing UI components" is a different one; generally, we would advocate that if something is testable, you try and extract that functionality into ActionScript classes that can be individually tested.  If your testing requirements are at the "mouse click" level, then you start to drift from the world of unit-testing to the world of automated testing.
 
Hope this helps,
 
Steven
 
Steven Webster
Practice Director (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
p: +44 (0) 131 338 6108
m: +44 (0) 7917 428 947 
[EMAIL PROTECTED]

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle
Sent: 13 June 2006 13:01
To: [email protected]
Subject: Re: [flexcoders] Re: FlexUnit question

Steven,

Is there any 'planned' tutorial like projects in the future that really help those that semi-understand unit testing but are having a hard time creating tests for components? IE UI components.

I have read in the book 'Refactoring' about these tests but, swinging from an application like test to component test seems to warp my head.

Peace, Mike

On 6/13/06, Steven Webster <[EMAIL PROTECTED]> wrote:

Maxim,
 
The flexunit project that was created by iteration::two (formerly at http://www.iterationtwo.com/open_source_flexunit.html) can now be found on Adobe Labs at http://labs.adobe.com/wiki/index.php/ActionScript_3:resources:apis:libraries#FlexUnit .
 
Our implementation of FlexUnit behaves exactly as per JUnit - it automatically finds all tests beginning with the word test, and runs them - no need to explicitly name all your tests.
 
One of our Adobe Consultants, Peter Martin, blogged about taking our preferred workflow one step further, by combining our FlexUnit project with Ant.  In the FlexUnitExample.zip that Peter has on this blog entry, you'll find a TestCalculator.as test-case, that has a number of test methods that are not explicitly added by the test runner.
 
Peter's blog entry is here:
 
 
Hope that helps,
 
Best,
 
Steven
 
Steven Webster
Practice Director (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
p: +44 (0) 131 338 6108
m: +44 (0) 7917 428 947 
[EMAIL PROTECTED]




--
What goes up, does come down.

__._,_.___

--
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