as3 / as3-utils

reusable package-level functions that solve common problems
273 stars 60 forks source link

Running Tests & Project environment setup. #15

Open hyakugei opened 13 years ago

hyakugei commented 13 years ago

Hello.

I'm reading the guidelines, and starting out writing some tests for new util functions. However, i'm a bit at a loss as to how you all have this setup in FB (or whatever) wrt running the tests. Reading the supplied link (on FlexUnit4 usage) it has a "master" Suite class that runs all the tests. This isn't in the test/utils... folder.

Just wondering what your environments are setup like for working on this codebase, especially wrt testing.

Thanks

mimshwright commented 13 years ago

I think this is being done with ant scripts, "ant test". I did set up FlashBuilder to do it once but I couldn't tell you exactly how. I'll see if I can pass this on to someone more worthy of answering the question.

mimshwright commented 13 years ago

Drew, can you help answer this question please?

drewbourne commented 13 years ago

I've just added test/UtilsTestRunner.as to build and run the test. See test/UtilsTestSuite.as for the FlexUnit Test Suite.

In order to setup the project in Flash Builder, follow these steps:

Running the tests:

PS. If you get get weird errors from StyleManager try using Flex 3.5.0 to get the tests to run in Flash Builder.