|
|
This project provides code coverage instrumentation, data collection and reporting tools for Adobe Flex and AIR applications.
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.
Currently flexcover's code coverage is based on lines of executable code. The next release of flexcover will also compute "branch coverage", in which conditional code paths rather than lines are counted. Many developers feel that branch coverage is a much more accurate measure of coverage, and it is able to detect coverage issues that occur within a single line of code such as compound conditionals with || and &&, or conditional expressions using the ?: operator.
(By the way, a colleague suggested that this project should be called "CoverMyAS3".)
The corresponding SDK modifications can be found in the flexcover-sdk project on Google Code.
Going forward, this will become a joint effort with Alex Uhlmann of Adobe Consulting, who has been working on a related set of ideas.
Here's a screenshot:
