...
You can get a copy of the FlexUnit 4 turnkey project via our downloads page on flexunit.org. The turnkey project contains a compiled version of the FlexUnit 4 library, FlexUnit .9 library (for any legacy tests), a graphical test runner example that will execute your tests in a browser, and a compiled version of the Hamcrest library . This version is geared toward Flex developers who are interested in exploring how FlexUnit 4 works, without spending time to set up or configure a project.
...
FlexUnit 4 is also available as a library project directly without the surrounding turnkey project. You can download the latest stable library versions with ASDocs and needed artifacts from the download page at flexunit.org. You can download specific version builds and nightly build versions from our automated build system at https://builds.flexunitapache.org.
FlexUnit 4 is compatible with ActionScript 3, Flex 2, Flex 3 and Flex 4 projects. You can get the version needed for your specific purpose along with the ASDocs and needed artifacts from the http://www.flexunit.org/?page_id=14 download page at flexunit.org, or you can download specific version builds and nightly build versions from our automated build system at httphttps://flexunit.digitalprimates.net:8080/ builds.flexunitapache.org. After obtaining the correct file, extract it and simply drop the FlexUnit4.swc into the libs directory of your project and you are ready to use it.
...
You may notice code completion for functions such as assertObjectEquals, assertMatch, assertNoMatch, assertContained, assertNotContained, assertUndefined, and assertNotUndefined. These are legacy functions supported in FlexUnit .9 that have since been superseded by http://docs.flexunit.org/index.php?title=Hamcrest Hamcrest matching.
You may choose to remove FlexUnit1Lib.swc from your project bin folder or project references to avoid any confusion.
If you are using ActionScript 3 Only:
...
Be sure you are using an ActionScript 3 build of FlexUnit 4. By default, FlexUnit includes code to work with Flex UIComponents. Further, the Flex version has the ability to work with Fluint, which is a Flex-only integration testing framework. As such, attempting to use a Flex version in ActionScript project will result in linker errors when the FlexUnit 4 framework code cannot find requisite classes.
...
Create a new Flex project and copy the <code><font <font size=2>FlexUnit4.swc</
font></code> font>
file into the libs folder of that Flex project.
...
Create a new Flex project. Create a folder named libs in that project and copy the <code><font {{ <font size=2>FlexUnit4.swc</font></code> font>}} file into the new folder.
...