Quantcast
Channel: Stack & Heap » actionscript
Viewing all articles
Browse latest Browse all 10

Running unit tests for AIR library modules in Intellij IDEA

$
0
0

When running unit test in Intellij IDEA for an AIR library module, an AIR application descriptor – “_flexunit-descriptor”  – is generated with a version number (3.1) that doesn’t necessarily match the air version targeted and specified in the flexmojos configuration in the pom (e.g. 3.8).

This causes the testrunner to bail with the message “error while loading initial content”.

In case of a library module there’s no way to control the AIR version in that generated AIR app descriptor, but you can work around this issues by altering your module’s iml file.

Alter the packaging-air node and point it to a valid application descriptor:

<packaging-air-desktop use-generated-descriptor="false" custom-descriptor-path="$MODULE_DIR$/src/test/resources/flexunit-descriptor.xml" package-file-name="mylibrary-1.0-SNAPSHOT" />


Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images