Flex testing a library and mxml with FlexUnit
I have several programmatic classes (library) to run commands in any mxml file. These classes (library) are wrapped in a SWC file. This SWC file references any sample mxml application (by adding as a SWC file). My problem is that I want to test these software classes (libraries) against my sample mxml file using FlexUnit. That is, I have to check the methods executed by the programmatic classes in the mxml file.
a source to share
If you are really doing unit testing, you should be a unit testing only the functionality of the mxml files, not the integration of the two together.
Set up flexunit to inspect the functions in the mxml file and use a mocking library (like ASMock to mock library classes.can then script and claim that the functionality of your mxml file behaves like specced.
If you want to run integration / functional tests you can take a look at FlexMonkey . It will manipulate and push buttons for you and allow you to assert different behaviors / properties.
a source to share