Coverage rate testing method and device and storage equipment

A test method and test device technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve frequent business code changes, coverage data deviations, and do not support the overall coverage test of multi-version business codes, etc. problems, to avoid repeated testing and analysis, and to improve testing efficiency

Active Publication Date: 2019-09-06
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Most coverage tools mark code coverage records with code line numbers. Once the code changes and the line number shifts, the coverage data will deviate. Therefore, it only supports the execution of test cases in a fixed version to count code coverage (for example Xdebug, Jacoco, etc.)
[0004] It can be seen that the current coverage testing tool can only obtain the coverage information of a certain version. ...

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 testing method and device and storage equipment
  • Coverage rate testing method and device and storage equipment
  • Coverage rate testing method and device and storage equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] Referring to the drawings, wherein the same reference numerals represent the same components, the principles of the present application are exemplified by being implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the present application, which should not be construed as limiting other specific embodiments of the present application that are not described in detail here.

[0033] In the following description, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise stated. Accordingly, these steps and operations will several times be referred to as being computer-implemented, which herein refers to operations by a computer processing unit of electronic signals representing data in a structured form. This operation transforms the data or maintains it at a location in the computer's memory system that can re...

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 embodiment of the invention discloses a coverage rate testing method and device and storage equipment. The coverage rate testing method comprises the steps of acquiring code difference informationand a mapping relation between a new version code and an adjacent historical version code; modifying the mapping relation according to the code difference information; mapping the code coverage lineidentifier of the historical version code into a code coverage line identifier in a new version code according to the modified mapping relationship to obtain a mapped code coverage line identifier ofthe historical version code; when a coverage rate acquisition instruction is received, integrating the code coverage line identifier of the new version code and the mapped code coverage line identifier of the historical version code; and obtaining the overall coverage rate of the code according to the integrated code coverage line identifier. According to the scheme, the overall coverage rate testof multi-version service codes can be supported.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of software testing, in particular to a coverage testing method, device and storage device. Background technique [0002] Coverage is a measure in software testing that describes the proportion and degree of code execution in a program. Coverage testing is an effective means of finding problems. By analyzing code coverage, you can quickly locate which codes are not running, and then construct corresponding test cases to cover these codes to find defects in software design. and errors. [0003] At present, software code coverage testing solutions are mostly implemented in the form of local deployment tools or IDE integration plug-ins. Most coverage tools mark code coverage records with code line numbers. Once the code changes and the line number shifts, the coverage data will deviate. Therefore, it only supports the execution of test cases in a fixed version to count code coverage ...

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/3676
Inventor 黄文轩
Owner TENCENT TECH (SHENZHEN) 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