Coverage rate statistical method and device based on version branches

A statistical method and coverage technology, applied in computing, instrumentation, error detection/correction, etc., to achieve the effect of improving execution efficiency, fast and accurate feedback, and meeting timeliness

Pending Publication Date: 2022-06-17
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of this application is to provide a coverage statistics method and device based on version branching, which overcomes the existing statistical coverage and accurate coverage statistics by identifying change programs, codes without business logic, and optimizing processes.

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
  • Coverage rate statistical method and device based on version branches
  • Coverage rate statistical method and device based on version branches
  • Coverage rate statistical method and device based on version branches

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and examples, so as to fully understand and implement the implementation process of how to apply technical means to solve technical problems and achieve technical effects in the present application. It should be noted that, as long as there is no conflict, the various embodiments in this application and various features in each embodiment can be combined with each other, and the formed technical solutions are all within the protection scope of this application.

[0031] Additionally, the steps shown in the flowcharts of the figures may be performed in a computer system, such as a set of computer-executable instructions, and, although shown in a logical order in the flowcharts, in some cases, may be executed differently The steps shown or described are performed in the order shown herein.

[0032] Please refer to figure 1 As shown, a kind of coverage ...

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 coverage rate statistical method and device based on version branches, relates to the field of program development, can be applied to the financial field and other fields, and comprises the following steps: obtaining version information of a coverage rate item to be counted according to an assembly line coverage rate statistical task, and calling a corresponding version library according to the version information, obtaining initial time information when a corresponding branch is constructed in a version library according to a version branch corresponding to the version information; according to the initial time information, code scanning is utilized to obtain reference version data of the version library in an original state, and unit testing and code scanning are carried out on the version library in a latest state according to the change program list to obtain a test coverage rate result and current version data; and obtaining line change information according to a comparison result of the current version data and the reference version data, performing line information processing calculation on the test coverage rate result according to the line change information to obtain a line change coverage rate, and obtaining a coverage rate statistical result according to the line change coverage rate and the test coverage rate result.

Description

technical field [0001] The present application relates to the field of program development and can be applied to the financial field and other fields, and in particular, to a method and device for coverage statistics based on version branches. Background technique [0002] Program coverage refers to the ratio of the statements that can be executed to all statements after running the test method in the project. [0003] The current coverage statistics process: use the continuous integration debugging tool Jenkins, drive the test tool Junit or Testng to run test cases, use the Jacoco coverage tool to generate coverage results, and push the coverage result files to the code quality platform Sonarqube to display and count the results. Execute the full amount of program cases, identify the covered code, and compare it with the code that can cover the entire line to obtain the coverage rate. Full coverage = code covered / code that needs to be covered. The program that identifie...

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/368G06F11/3676G06F11/3688G06F11/3692
Inventor 欧建斌温建波雷卓敏李学优
Owner INDUSTRIAL AND COMMERCIAL BANK OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products