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

Code coverage rate processing method and device and computer equipment

A code coverage and coverage technology, applied in computing, electrical digital data processing, instruments, etc., can solve the problems of repeated code testing, code coverage data cannot be directly merged, repeated testing, etc.

Active Publication Date: 2020-04-14
GUANGZHOU PINWEI SOFTWARE
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, for each submitted minor version, due to the different identification codes of the compiled products after software testing, the code coverage data obtained during the testing process between minor versions cannot be directly merged
If the coverage data between minor versions cannot be merged, directly referring to the code coverage data of the current minor version will easily lead to repeated testing
For example, the current minor version and the previous minor version both contain a certain code, and a certain code has been tested and covered in the previous version but not in the current minor version. At this time, referring to the code coverage data of the current minor version needs to be Code is retested, thus causing repeated testing of that code

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
  • Code coverage rate processing method and device and computer equipment
  • Code coverage rate processing method and device and computer equipment
  • Code coverage rate processing method and device and computer equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0021] A code coverage processing method provided by this application is applied to such as figure 1shown in the application environment. Wherein, the terminal 16 uploads development packages of various versions of the application program to the server 12 through the network connection, and the development package includes the source code of the application program. Wherein, the development kits of various versions uploaded by the terminal 16 include development kits of multiple minor versions of the same version. After receiving the application development package uploa...

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 relates to a code coverage rate processing method and device, computer equipment and a storage medium. The method comprises the steps of obtaining a difference method of a second type offiles obtained by testing a second version of a second source code of an application program relative to a first type of files obtained by testing a first version of a first source code of the application program; obtaining second sub-code coverage rate data of the difference method and third sub-code coverage rate data except the second sub-code coverage rate data from the code coverage rate data file of the second source code; obtaining first sub-code coverage rate data except the code coverage rate data corresponding to the difference method from the code coverage rate data file of the first source code; and combining the first sub-code coverage rate data and the third sub-code coverage rate data to obtain fourth sub-code coverage rate data, and generating a third code coverage rate data file according to the second sub-code coverage rate data and the fourth sub-code coverage rate data. The method can reduce repeated code tests.

Description

technical field [0001] The present application relates to the technical field of software testing, in particular to a code coverage processing method, device, computer equipment and storage medium. Background technique [0002] In software testing, it is usually necessary to perform code coverage statistics on the software testing process. Code coverage represents the extent to which code can be covered by tests. Generally, software testers decide whether software testing needs to be repeated based on the level of code coverage. [0003] In current software testing, the release version of an application program consists of N measurable minor versions. That is, for each version released to the outside world, the developer will submit multiple small versions of the software development kit to the server. However, for each submitted minor version, because the identification codes of the compiled products after software testing are different, the code coverage data obtained d...

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/3692
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