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

A code coverage analysis method, device, equipment and storage medium

A code coverage and analysis method technology, applied in the field of software testing, can solve problems such as difficulty in synchronizing coverage levels with each other, inability to test coverage statistics and analysis, and difficult to count the coverage impact of new functions, so as to reduce repeated coverage Effect

Active Publication Date: 2022-07-29
BEIJING CHENGSHI WANGLIN INFORMATION TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the coverage rate of each stage of software testing is counted separately. For example, unit testing is usually performed by developers, and integration testing is usually performed by testers. It is difficult for developers and testers to understand the details of each other's test coverage. Add test cases for coverage as a whole
For different implementation types, such as manual testing and automated testing, it is also difficult to synchronize the coverage rate with each other, and it is difficult to grasp the missing test situation as a whole
In addition, in the iterative process of software functions, in the process of conducting a series of tests for new functions, it is difficult to count the impact of the coverage of new functions on the overall coverage.
[0004] That is to say, the existing test coverage statistical tools can only run on a single machine, and there is a problem that it is impossible to conduct statistical analysis on the test coverage as a whole

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
  • A code coverage analysis method, device, equipment and storage medium
  • A code coverage analysis method, device, equipment and storage medium
  • A code coverage analysis method, device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0058] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be more thoroughly understood, and will fully convey the scope of the present disclosure to those skilled in the art.

[0059] In the first embodiment of the present invention, a code coverage analysis method is provided, such as figure 1 As shown, the method described in this embodiment includes the following steps:

[0060] Step S101, during code testing, merge the code coverage result files of each test stage, and generate a summary code coverage result report based on the merged files;

[0061] In the embodiment of the present invention...

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 code coverage analysis method, device, equipment and storage medium. The method includes: during code testing, merging code coverage result files of each testing stage, and generating a summary based on the merged files. code coverage result report; determine the first code under test and the second code under test to be analyzed, and obtain the code coverage results of the first code under test and the second code under test in the aggregated code coverage result report report; establish a mapping relationship between the code coverage results of the first tested code and the second tested code, and perform a difference analysis on the two code coverage results according to the mapping relationship. The solution of the present invention realizes the statistical analysis of the test coverage rate as a whole, and based on the analysis result of the analysis, the test can be more targeted and repeated coverage can be reduced.

Description

technical field [0001] The invention relates to the field of software testing, in particular to a code coverage analysis method, device, equipment and storage medium. Background technique [0002] Software testing refers to the process of testing software in an automated or manual way to find program errors and ensure software quality. It usually includes different levels such as unit testing, interface testing, integration testing, performance testing, etc., and from the perspective of implementation, it is divided into manual testing, automated testing, ad-hoc testing (random testing) and so on. [0003] It can be seen that software testing is divided into different stages and different implementation types. However, the coverage of each stage of software testing is counted separately. For example, unit testing is usually carried out by developers, and integration testing is usually carried out by testers. It is difficult for developers and testers to understand the detai...

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 Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3676G06F11/3692
Inventor 万书吉
Owner BEIJING CHENGSHI WANGLIN INFORMATION TECH CO LTD
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