Flex: Run all tests in project feature?


we have a multi-module Flex project, built and imported into IJ using FlexMojos, and with tests in some of the individual modules' src/test/flex.

I'd like a test configuration option to run all tests across the project, like you now have for Java. Right now I can only run all tests for each module individually.

Shall I raise a feature request issue or is there one already?


Comment actions Permalink

No, there's no such request yet.
If in your project structure you have some kind of 'main' module that depends on all other modules, then you can create aggregating test suite class in that module and create FlexUnit run configuration for this test suite. Even if you don't have such aggregating module you can add a fake one with the only test suite class.

Comment actions Permalink

Ok I could do that - but I'm lazy and don't want to have to maintain anything extra ;-)

Comment actions Permalink

Actually, that isn't an option for me anyway.

Our app is structured so that the main app shell is compiled first, generating a link-report, then the modules are compiled with the link-report in their compiler args. (It works as described here, but using Maven and FlexMojos instead: http://livedocs.adobe.com/flex/3/html/help.html?content=modular_4.html)

So the dependencies are inverted from what you expect, ie, the modules effectively depend on the main application (rather than the other way round).

In fact, there is _no_ Flex module in our project that has a dependency on everything else... there is a WAR module that depends on all the Flex SWFs, but currently IDEA prevents me from creating a test run config for a non-Flex module, which is fair enough.

I just raised a bug for a related issue when trying to run tests in such a project: http://youtrack.jetbrains.net/issue/IDEA-70155?projectKey=IDEA


Please sign in to leave a comment.