A code coverage statistics method and device

A code coverage and statistical method technology, applied in the field of code coverage statistical methods and devices, can solve problems such as inability to guide core code testing, inability to guarantee code quality, etc.

Active Publication Date: 2019-03-29
TAIKANG LIFE INSURANCE CO LTD
View PDF15 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the unit testing process in the prior art, it is usually tested for all codes, and the code coverage test report obtained in this

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 statistics method and device
  • A code coverage statistics method and device
  • A code coverage statistics method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0044] The terms "first" and "second" in the specification and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having", and any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or apparatus comprising a series of steps or units is not defined by listed steps or u...

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 statistics method and device. The method comprises the following steps: based on an item to be tested, configuring and obtaining a filtering rule file of code test; carrying out unit test on the item to be tested to obtain an initial code coverage report; filtering statistical data of the initial code coverage report based on the filtering rule file to obtain target statistical data; generating a target code coverage report based on that target statistic. In the invention, the non-core code of the item to be tested can be filtered, Then the reproduced target statistics can better meet the needs of the code development of the project under test. According to the target statistics, the generated target code coverage can provide more accurate referencedata for developers and testers, and then achieve the purpose of testing the core code.

Description

technical field [0001] The invention relates to the field of computers, in particular to a code coverage statistical method and device. Background technique [0002] Software testing is a very important part of the software construction process. Through software testing, software hidden problems can be found and the quality of software can be measured. In all software testing, unit testing is an important link, wherein unit testing is a test for the smallest testable unit in an application program, and the smallest unit generally refers to a method, a class, and a code segment that can realize a function. [0003] Code coverage is a measure in software testing that describes the proportion and degree of source code in a program being tested. Among them, the proportion of source code that is tested becomes code coverage. Code coverage is one of the important indicators considered by unit testing. A high code coverage indicates more tested code, and a low coverage indicates ...

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 TAIKANG LIFE INSURANCE 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