Code coverage rate computing analysis method and device, equipment and storage medium

A code coverage and analysis method technology, which is applied in the field of devices, equipment and storage media, and code coverage calculation and analysis methods, can solve problems such as inaccurate code coverage data calculations, and achieve the effect of ensuring coverage

Pending Publication Date: 2018-11-16
PINGAN YIQIANBAO E COMMERCE CO LTD
View PDF5 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is to overcome the inaccurate calculation of code coverage data for mobile phone systems in the prior art, and propose a code coverage calcula

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 computing analysis method and device, equipment and storage medium
  • Code coverage rate computing analysis method and device, equipment and storage medium
  • Code coverage rate computing analysis method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The present invention is further illustrated below by means of examples, but the present invention is not limited to the scope of the examples.

[0038] First, the present invention proposes a code coverage calculation and analysis method.

[0039] In the first embodiment, if figure 1 As shown, for the installer applied to the IOS side, the code coverage calculation and analysis method includes the following steps:

[0040] S1. Obtain the current version of the code and the commit id corresponding to the code from the code base through the git command.

[0041] Usually, after a programmer finishes writing a program, he will upload the program to a specific code library (such as a sandbox), and the uploaded program includes a corresponding commit id.

[0042] The id in the commit id refers to a hash value. The hash value is a numerical value obtained by logical operation according to the content data of the file. The hash value obtained by different files (even with th...

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 rate computing analysis method, a code coverage rate computing analysis device, equipment and a storage medium, and belongs to the technical field of computers.The method comprises the following steps of acquiring a code of a current version and commit id corresponding to the code from a code library via a git command; packaging and compiling the code, andstoring the code into a folder named by the commit id corresponding to the code; receiving a coverage rate file named by the commit id of the code, and storing the file into the folder named by the commit id; generating a test coverage rate port of the current code via a code coverage rate tool; generating a full coverage rate report via a combination algorithm; and generating an incremental coverage rate report via a git diff command. According to the method, device equipment and medium provided by the invention, combination of coverage rates between the different codes after the code is frequently changed is supported, and thus the certain version of accurate coverage rate file can be acquired.

Description

technical field [0001] The invention relates to the technical field of computers, and relates to a code coverage calculation and analysis method, device, equipment and storage medium. Background technique [0002] Coverage is a measure of test completeness and a measure of test effectiveness. Represented by executed code, it is used for reliability, stability and performance evaluation. [0003] Test coverage is a measure of the completeness of a test. Test coverage is represented by coverage of test requirements and test cases or coverage of executed code. It is based on the evaluation of the test results and the analysis of the change requests (defects) identified during the testing process. [0004] Currently, the coverage tool can only calculate coverage data if the code has not changed. However, mobile phone system development will change the code during the testing phase due to changes in requirements or bug fixes, so that one version will have multiple test packag...

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
IPC IPC(8): G06F11/36
CPCG06F11/3676G06F11/3688
Inventor 沈瑶冯捷樊丰春陈铮
Owner PINGAN YIQIANBAO E COMMERCE CO LTD
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