3 Replies Last post: Feb 7, 2012 8:35 PM by tommy salomonsson  
tommy salomonsson Newbie 5 posts since
Feb 6, 2012
Currently Being Moderated

Feb 7, 2012 2:26 PM

Unittesting pure actionscript project

Hi again guys. Sorry for spamming this list =)

 

I'm trying to set up a unit test build configuration for a project that is pure actionscript.

When I open the "edit configurations" and create a new flexunit configuration it asks me which configuration I want to use (and I point it to my actionscript-only project).

 

But since the test runner is mxml, and I don't have flex components I get the error "Could not resolve <mx:Application> to a component implementation".

 

Do you have a clever trick for this, or do I need to duplicate my project build configuration as a flex application and use this as my base for testing?

regards

/Tommy

Alexander Doroshko JetBrains 1,320 posts since
Jun 9, 2009
Currently Being Moderated
Feb 7, 2012 3:07 PM in response to: tommy salomonsson
Re: Unittesting pure actionscript project

Don't hesitate to ask, feedback is very important for us!

 

Indeed, mxml test runner is our problem, we need to fix it. Tracked as http://youtrack.jetbrains.net/issue/IDEA-80703. For now, yes, you can clone your build configuration to the non-pure AS (select build configuration and use Copy button in Project Structure dialog).

More Like This

  • Retrieving data ...