Code coverage practice

Code coverage practice

Key code coverage practice-differential code coverage

Key points:
(1) Obtain the developer’s own code version and obtain the person’s submitted code
(2) Compare each file with the current version of the latest final code file to obtain the latest difference line
(3) Filter invalid codes such as comments, Notes, blank lines, and invalid symbols are only obtained for executable code
(4) Compare with the full code coverage report, if the line is covered, it will be marked as red, and if the line is partially covered, it will be displayed as yellow and uncovered, then it will be displayed as green. Corresponding class tag bit (see the specific front-end code),
(5) Formula difference code coverage = covered branches/total number of branches (if there is no logical branch, the number of branches is 1)

Guess you like

Origin blog.51cto.com/zhongwen/2641510
Recommended