This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
1 Replies Last post: Oct 16, 2013 2:10 PM by Alexander Doroshko  
Eric Mulvihill Newbie 18 posts since
May 22, 2012
Currently Being Moderated

Oct 16, 2013 4:42 AM

How to include Flexunit test resources

I'm trying to set up some Flexunit unit tests, and I'm mostly successful, but the unit tests which require test resources (xml files and the like) are failing. I've marked my resources folder as a "test resources folder", but I dont see any option to force the FlexUnit runner to copy those resources to the out folder, and I am getting IO Exceptions because my asset loaders dont find the files.

 

What am I doing wrong? Is there another place to specify these test resources to copy?

 

thanks

Alexander Doroshko JetBrains 1,298 posts since
Jun 9, 2009
Currently Being Moderated
Oct 16, 2013 2:10 PM in response to: Eric Mulvihill
Re: How to include Flexunit test resources

I guess you use IntelliJ IDEA 13 EAP. You should mark the folder with resources as a Test Source folder (not test resource folder). Make sure you have 'copy resource files' enabled at Project Structure | Modules | [your module] | [your build configuration subnode] | Compiler Options tab.

More Like This

  • Retrieving data ...