Incremental Coverage
The Incremental Coverage window allows you to view your code coverage in real time while you are coding. It dynamically shows the coverage for all classes in which you made the last 100 changes. Every time you make a change, the Incremental Coverage is automatically updated. Using Incremental Coverage, you can always see the impact of your latest modifications on the codebase project.
Using Incremental Coverage, you can always see the impact of your latest modifications on the codebase project.
Clear – clicking this button clears the list containing the last 100 changes.
For example:
Consider the following method
The Incremental Coverage window shows both the real time Sequence Coverage and Branch Coverage which in this example are 80% and 50% respectively:
Adding the following unit test will cause both the real time Sequence Coverage and Branch Coverage to increase to 100% as shown below: