Setting up functional Tests in Flex

Posted by Dan Monego on Stack Overflow See other posts from Stack Overflow or by Dan Monego
Published on 2010-04-23T20:08:31Z Indexed on 2010/04/23 20:13 UTC
Read the original article Hit count: 331

Filed under:
|
|

I'm setting up a functional test suite for an application that loads an external configuration file. Right now, I'm using flexunit's addAsync function to load it and then again to test if the contents point to services that exist and can be accessed.

The trouble with this is that having this kind of two (or more) stage method means that I'm running all of my tests in the context of one test with dozens of asserts, which seems like a kind of degenerate way to use the framework, and makes bugs harder to find. Is there a way to have something like an asynchronous setup? Is there another testing framework that handles this better?

© Stack Overflow or respective owner

Related posts about flex

Related posts about flexunit