views:

768

answers:

5

Does anyone know of any guides or any sort of documentation on how to set up the new Flex Builder 4 beta? I've been pulling my hair all day long, none of my tests are executed and I can't for the life of me understand what's wrong. There are no errors at all. It's as if the metadata tags are not recognized, is there some special compiler argument to recognize them? I seem to remember that this is not necessary as long as the swc files that are included were compiled with said arguments.

I'm using Beta 1 of Flex Unit 4 which can be found here: http://opensource.adobe.com/wiki/display/flexunit/FlexUnit+4+feature+overview

I'm actually using the very same code that is included with that package to run the tests, but no tests are executed. Neither mine nor the ones included in the FU4 package. The lack of documentation certainly doesn't help much...

A: 

It seems as though the [RunWith] metadata was the culprit. Commenting that one line out will make the tests run as expected. Unfortunately, I still have no idea why.

macke
+1  A: 

If you download the turnkey project, it runs without modification. I would suggest starting there.

FYI: I will be posting much more about this soon. Officially FB beta doesn't support FlexUnit 4 yet, which is part of the disconnect

A: 

But the question was not answered. Is there any guides or docs on FlexUnit 4 other than the feature overview?

You're right, I removed the answered mark. Unfortunately, I still haven't found much in the ways of documentation. I've been on vacation for some weeks now so I can't really vouch for the current state of the documentation.
macke
A: 

Also checkout the continuous integration example in the flexunit 4 repo for an example of using the asynchronous testing methods. Specifically look at the EchoPanelTest class.

I know, not documentation, but I was lost on the async stuff till I saw it.

schickm
A: 

For future reference, there is now documentation available here.

macke