Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Tests & Project environment setup. #15

Open
hyakugei opened this issue Jul 13, 2011 · 3 comments
Open

Running Tests & Project environment setup. #15

hyakugei opened this issue Jul 13, 2011 · 3 comments
Assignees

Comments

@hyakugei
Copy link

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
Copy link
Contributor

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.

@ghost ghost assigned drewbourne Jul 30, 2011
@mimshwright
Copy link
Contributor

Drew, can you help answer this question please?

@drewbourne
Copy link
Contributor

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:

  • clone the repository into your workspace
  • in Flash Builder, create a new Flex Library project
  • in the "New Flex Library Project" window, set the project name to 'as3-utils'
  • select Use a specific SDK: ''Flex 4.0"
  • select Next
  • under the Library path tab, select 'Add SWC Folder', add 'libs'
  • under the Source path tab, select 'Add Folder', add 'test'
  • select Finish

Running the tests:

  • right now, running the full test suite is best done by running 'ant clean package' from the project root folder.
  • running each individual tests should be fine from within Flash Builder.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants