DPJ Coverage count off by two

0 Likes

Problem:

The count of lines not executed in DPJ Coverage always off by two.

Resolution:

If you have a.main() program that ends with the following lines, Coverage analysis will always report two lines not covered.

.System.exit(0); 
}

This incorrect count occurs because Coverage counts the System.exit(0) call and the bracket just following it as never having been executed.

Old KB# 11129
Comment List
Anonymous
Related Discussions
Recommended