Friday, November 26, 2010

Suggested Directory Organization

The FlexUnit 4 framework doesn’t prescribe a directory structure for testing files; however, the following suggestions work well:

  • Each test suite should have its own directory.
  • The suite definition should reside in this directory.
  • Within the directory for the test suite, create a tests directory.
  • Inside of this directory store each of your test cases for this test suite.
  • Any additional classes needed to accomplish testing can be stored in further subdirectories.

Ideally, the directory structure looks something like this

src/
testSuite1/
TestSuite1.as
tests/
TestCase1.as
TestCase2.as
TestCase3.as
testSuite2/
TestSuite2.as
tests/
TestCase1.as
TestCase2.as
TestCase3.as


Full Documentation

No comments: