Combining code coverage sessions

You can combine the results from multiple code coverage sessions to view the cumulative coverage across distinct runs of a test program.

To combine several sessions:
  1. In the Code Coverage Sessions view, use multi-select to indicate the sessions you want to combine.
  2. Right-click and choose Combine/Copy Sessions.
  3. In the Combine Coverage Session window, enter a name for the new results and click OK.

The IDE creates a session and displays it in the Code Coverage Sessions view. The session's data metrics reflect the cumulative coverage across all previously selected sessions. So if a particular line of code was executed by only one of five test runs, this line is still counted as executed.

For lines that were partially executed in some test runs, the combined results show the cumulative coverage for the entire line. Suppose one test run executed 50% of a given line but another test run executed the other 50%. In the combined results, the line is shown as fully (100%) executed.