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

A method and device for generating a code coverage report

A code coverage and coverage technology, applied in the field of testing, can solve the problems of difficulty in automation, poor reusability, and high dependence on manual operations, and achieve the effect of eliminating configuration, realizing automation, and high reusability

Active Publication Date: 2019-12-24
BEIJING QIHOO TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] In the process of generating coverage reports by these third-party tools, not only third-party tools need to be used, but also complex configuration of the generation environment of code coverage reports is required, resulting in a high degree of dependence on manual operations and difficult automation; in addition, depending on different The third-party tools have different configuration schemes, making their reusability poor

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 method and device for generating a code coverage report
  • A method and device for generating a code coverage report
  • A method and device for generating a code coverage report

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0070] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although 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 for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0071] refer to figure 2 , which shows a flow chart of the steps of Embodiment 1 of a method for generating a code coverage report according to an embodiment of the present invention, which may specifically include the following steps:

[0072] Step 201, calling a test tool in the application to be tested to read a preset configuration file;

[0073] In the embodiment of the present invention, the configuration of the third-party...

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 provides a method and device for generating a code coverage rate report. The method comprises the following steps: reading a preset configuration file by invoking a test tool in an application to be tested, wherein a first storage catalogue and a second storage catalogue are set in the configuration file; reading a code coverage rate data file, which is generated when the application is tested, from the first storage catalogue; reading an application file compiled based on an application source code from the second storage catalogue; and generating the code coverage rate report according to the code coverage rate data file and the application file. By means of the embodiment of the invention, complex configuration in a third-party tool is avoided; therefore, the test process is effectively simplified; automation of the whole test process is realized; the method and the device are applicable to a wide range of projects; a unified approach is provided for automatically establishing the code coverage rate report for the projects; and the reusability is high.

Description

technical field [0001] The invention relates to the technical field of testing, in particular to a method for generating a code coverage report and a device for generating a code coverage report. Background technique [0002] When testing an application, code coverage is one of the important indicators to measure the test and also one of the important indicators to measure the progress of the testing work. [0003] Whether it is a unit test, an API (Application Programming Interface, application programming interface) test or a functional test, the code of the product is ultimately called. [0004] After the test is over, through the code coverage data, you can know whether the test is sufficient and where the weaknesses of the test are, and then guide the design of test cases that can increase the coverage. [0005] Among them, in the Android (Android) platform, the code coverage mainly uses the test tool Jacoco for statistics. [0006] At present, the generation process ...

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/3688
Inventor 吕清娇刘双
Owner BEIJING QIHOO 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