Question
How to structure tests within a Flex Builder project
I am having difficulty in deciding where to store my FlexUnit tests. I am hoping that someone can provide some 'sage advice' for me.<br /><br />The project is simple. Here is the structure:<br /><br />\bin-debug<br />\src\impl\<several AS files><br />\src\unit_tests\\<several AS files><br />\src\main.mxml<br />\src\TestRunner.mxml<br /><br />'impl' is a package where all of my business logic is stored.<br />'unit_tests' are where all of my FlexUnit tests are.<br /><br />With this structure my unit tests cannot import and test any classes within the impl package unless I make the classes public instead of private. I do not want to do this since only 2 of the 10 classes within impl should be exposed by design. The others support those 2 top-level classes.<br /><br />I also want the ability to write unit tests for all of my classes, no matter where they reside. I also want to keep my test code separate from my implementation/production code.<br /><br />Could someone please provide some insight on how I can structure the project so that I have unit tests for all of my classes, which are separate from production code?
