Viewing code coverage results
You can view your code coverage results in either a Workbench , File, HTML, or PDF report or within the editor. By default, Workbench reports are generated.
- Viewing workbench reports
Using the Workbench report, you can sort columns to help you quickly identify unacceptable levels of coverage. You can sort the code coverage data by element, coverage, covered items, or total items. - Viewing file and filtered file reports
File reports are organized according to the following hierarchy: File > Function. Files are often used by multiple programs. Open or generate a File Report if you want to see coverage results for a file as it is used in more than one program. In a file report you can expand or collapse nodes representing the hierarchy of your source file, filter results according to threshold, open source in an editor that explicitly shows lines covered by the test run, and more. - Viewing HTML reports
Using the HTML report, you can sort columns to help you quickly identify unacceptable levels of coverage. You can sort the code coverage data by covered lines, total lines, or % coverage. Clicking on the column header within the report will toggle the sort order from ascending to descending order. - Viewing PDF reports
If you need to print your code coverage report, you may want to generate and open a PDF report. - Viewing code coverage results in an editor
Open the source code and view its code coverage results in the editor. - Configuring code coverage colors
The default code coverage decorations shown in the editor and views are configurable.