On 3/23/14 9:51 AM, "Michael A. Labriola" <labri...@digitalprimates.net> wrote:
>>I found when trying to get FlexUnit to work with FlexJS that there is >>some work needed there as well since the FlexUnit demos use mx or Spark >>applications around the runners. > >Alex, this isn't completely true and I can help you with it. The runner >itself is entirely AS only, no Flex dependencies at all. There are UIs >written for it (some in Spark, some MX even on in AS only for Flash Pro) >but those add themselves as listeners to the FlexUnit core which manages >the runners. OK, I didn't see any non-Flex apps around the runners. The deal is the mx and Spark apps can't wrap the runners and load in FlexJS classes at the same time. I think I'll just have to replace the Spark app with a FlexJS app. > >There is a TextListener as well which just traces the output. My first >suggestion would be to mimic this to just do a console.log in the >resultant JS to get things up and running. My goal (maybe starting tomorrow) is to try to get the Ant script to work so it will fail if we break something on the AS side of FlexJS. I don't know of any resultant JS at this point. I did wonder about cross-compiling FlexUnit and the tests via FalconJX/FlexJS. Do you think that would work? Or should we actually use some JS testing framework for the hand-written JS pieces? IMO, being able to write JS tests with a similar pattern/workflow as FlexUnit would be good. A quick survey didn't really turn up anything that looked like FlexUnit. I saw there is a JSUnit but didn't look into it because it appears to be deprecated. -Alex