Use the Coverage tool to provide code coverage when testing applications

by Retired ‎02-16-2010 11:07 AM - edited ‎02-18-2010 11:06 AM (1,851 Views)


This article applies to the BlackBerry® Java™ Development Environment (JDE).


The BlackBerry JDE includes a coverage tool that displays a summary of the lines of code that have been run during a debugging session. This is particularly useful when designing and running test cases, because the developer can see exactly what has been tested.

The coverage pane displays a hierarchical view of packages, classes, methods, and the percentage of code that has been run in each area. Double-click a specific method to open the source code at this location. Green bars indicate that the source code was run, while red bars indicate that the source code was not run.

For more information on using this tool, see the appropriate BlackBerry Java Development Environment Developer Guide.

Additional Information

For more information, see the coverage_pane.gif and source_code_coverage.gif files