FlexUnit intergration test examples and documentation

Migs's Avatar

Migs

26 Jul, 2012 07:30 AM

Hello,

I've read somewhere that RobotLegs framework is "highly testable" so I've decided to throw myself into the unit testing world... I'm a total newbie in the field and I must say that after a few hours of research, it is almost impossible to find a good implementation example with an exhaustive documentation. Here are the missing elements that would help me a lot to get started:

  • A full RobotLegs projet implementing FlexUnit 4 (with meta tags) with, if possible, an example of asynchronous testing of a remote service call via amfphp (or any amf...).
  • Optionally, in the same example project, add a mocking example using Mokito (or another one).
  • A tutorial/article explaining the best practices (where to put the test classes, when do we need to write a Suite, how to test modules or projects split into several Flash builder projects) and if possible what are the best practices in a RL project, what is the most relevant to test (views, mediator, commands, models, services, events....) giving examples.
  • An exhaustive documentation of FlexUnit 4 (JavaDoc like) explaining the different classes with a few examples (for example I was unable to find a good documentation explaining the differences between all the asynchrounous functions proceedOnEvent, failOnEvent, handleEvent etc.).

So please tell me that I just suck at searching the web and that those resources actually exist already :)

Thank you for your help!

  1. Support Staff 1 Posted by Ondina D.F. on 26 Jul, 2012 02:25 PM

    Ondina D.F.'s Avatar

    Hi Migs,

    Good questions!

    I know that I’m not answering your questions, and I’m sorry for that, but maybe the following links will help you, at least a little bit, to get started. Not sure if you already saw them.

    Here are the examples from ActionScript Developer's Guide to Robotlegs – look at the tests:

    https://github.com/Stray/robotlegs-examples-OreillyBook

    Shaun’s answer – I found it very useful:

    http://knowledge.robotlegs.org/discussions/questions/843-1st-projec...

    Stray’s answer:

    http://knowledge.robotlegs.org/discussions/questions/239-examples-o...

    Robotlegs framework tests:
    https://github.com/robotlegs/robotlegs-framework/tree/version2/test

    Joel’s example:
    https://github.com/joelhooks/robotlegsdemos/tree/master/FlickrImage...

    http://joelhooks.com/2009/07/21/unit-testing-with-inversion-of-cont...

    Flex Unit:

    https://flexunit.tenderapp.com/kb/getting-started/flash-builder-4-s...

    http://docs.flexunit.org/index.php?title=Setting_up_a_FlexUnit_4_Pr...

    You can also search the discussions for “FlexUnit” “unit test”.

    Cheers,
    Ondina

  2. 2 Posted by Migs on 27 Jul, 2012 06:53 AM

    Migs's Avatar

    Thank you very much for all these links, I will check it out and let you know how it goes ;)

  3. Support Staff 3 Posted by Ondina D.F. on 27 Jul, 2012 11:18 AM

    Ondina D.F.'s Avatar

    No problem:) Looking forward to your feedback!

  4. Ondina D.F. closed this discussion on 27 Aug, 2012 10:36 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac