Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Pending Publication Date: 2016-12-07
GUANGZHOU PINWEI SOFTWARE
View PDF6 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Even if the client can use some filter 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 modification, that is, the developer cannot accurately know the situation of the modified code, making It is difficult for developers to obtain the required data, resulting in inconvenient and quick test cases to increase coverage for the launch

Method used

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
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for obtaining code coverage rate
  • Method and device for obtaining code coverage rate
  • Method and device for obtaining code coverage rate

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0032] Such as figure 1 As shown, a first embodiment of a method for obtaining code coverage in the present invention is shown. The method for obtaining code coverage in this embodiment includes:

[0033] Step S10. Send the unique identifier of the original version code and the unique identifier of the modified version code to the server, so that the server can obtain the original version code and the modified version code according to the unique identifier of the original version code and the unique identifier of the modified version code. version code, obtaining total code coverage data and difference code information according to the original version code and the modified version code, and feeding back the total code coverage data and the difference code information to the client;

[0034] Code coverage is an imp...

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

PUM

No PUM Login to View More

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.

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

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3676G06F11/3688
Inventor 庞元管玮琦李梦
Owner GUANGZHOU PINWEI SOFTWARE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products