I’ve just come across FlexCover over on Google Code - which looks like an absolutely fantastic project.
Brought to be by Joseph Berkovitz, FlexCover provides code coverage instrumentation, data collection and reporting tools for Adobe Flex and AIR applications.
To quote the description on the site: “Flexcover is a code coverage tool for Flex, AIR and AS3. It incorporates a modified version of the AS3 compiler which inserts extra function calls in the code within the SWF or SWC output file. At runtime, these function calls send information on the application’s code coverage to a separate tool; The modified compiler also emits a separate “coverage metadata” file that describes all the possible packages, classes, functions, code blocks and lines in the code, as well as the names of the associated source code files.“
The site mentions involvement from Alex Uhlmann from Adobe Consulting, which should give the project a massive PR boost.
If you’re unit testing with Flex - and if not, why not? You should check this out. There’s no point in getting 100% of your tests passing if you’re only testing 10% of your code.
Just a quick footnote: I’ve not had a chance to try this out yet, so haven’t commented on it’s current development state. This is very much an early release - so you will probably find issues.


