Method and device for obtaining code coverage rate

A technology of code coverage and coverage, which is applied in the field of software development, can solve the problems that it is difficult for developers to obtain data, developers cannot accurately know the modified code, and test cases are not convenient and fast enough, so as to improve the accuracy of acquisition and improve The effect of convenience
CN106201863APending Publication Date: 2016-12-07GUANGZHOU PINWEI SOFTWARE

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGZHOU PINWEI SOFTWARE
Publication Date
2016-12-07

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a method for obtaining a code coverage rate. The method comprises the following steps: sending the unique identification of an original version code and the unique identification of a revised version code to a server for the server to obtain the original version code and the revised version code according to the unique identification of the original version code and the unique identification of the revised version code; according to the original version code and the revised version code, obtaining total code coverage rate data and difference code information, and feeding back the total code coverage rate data and the difference code information to the client side; and receiving the total code coverage rate data and the difference code information, and obtaining difference code coverage rate data according to the total code coverage rate data and the difference code information. The invention also discloses a device for obtaining the code coverage rate. By use of the method and the device, the acquisition accuracy of the code coverage rate is improved, and convenience for development personnel to increase the test case of the code coverage rate is improved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the technical field of software development, in particular to a method and device for acquiring code coverage. Background technique

[0002] At present, the code coverage rate reflects an important indicator of the coverage degree of the test case to the software under test, and is a reference value used to measure the integrity of the test. The code coverage rate data can be used to evaluate whether the test is sufficient. In the process of software development, the code coverage data obtained through the client is generated based on all codes of the monitored project. In the case of many projects with tight schedules, the coverage data based on all codes is not of great guiding significance to developers. Even if the client can use some filtering conditions to reduce the classes that do not care, it still cannot reflect the coverage of the difference code information between the two versions of the code before and after the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More