actionscript-3intellij-ideaflexunitrobotlegsflexunit4

flexUnit pure AS3 IntelliJ


Is it possible to have FlexUnit 4.1 in IntelliJ with project set up as Pure AS3 which meens no Flex Runner.

What I get is an error

Error #1065: Variable mx.core::FlexVersion is not defined.
ReferenceError: Error #1065: Variable mx.core::FlexVersion is not defined.

But if I uncheck the Pure AS3 from module setting everything works. The reason why I check pure AS3 is that I dont get Flex completion, and possible there are reasons that I still dont know.


Solution

  • I assume your inspiration is running it on a continuous integration system like Hudson, Bamboo, or TeamCity.

    You need a windowing environment, but there are some workarounds to provide one.

    Look at this FlexUnit Wiki: http://docs.flexunit.org/index.php?title=Continuous_Integration_Support