2012/11/08

To Test the Code Coverage in Flex with FlexCover

During the process of development, when you want to have a look at the current code coverage as whether there are any unexecuted codes, you can do it with FlexCover. Here are the steps:
  1. Download FlexCover-SDK,http://code.google.com/p/flexcover/
  2. Install CoverageViewer.air:
  3. Please copy a sdk, take the edition 4.1 as an example, and then copy the sdk-modifications-4_0 in the download package into sdk, covering the original file.

  4. Add the revised SDK into the Flash Builder.
  5. Set the current SDK in use as copySDK.
  6. The operation you have done is successful if there is a file named *.cvm now in catalogue bin-debug.
  7. Run CoverageViewer and load the cvm file that has been generated.
  8. Run the demo and see the code coverage:

No comments:

Post a Comment