Code coverage rate test method and apparatus

A code coverage and testing method technology is applied in the field of code coverage testing methods and devices to reduce the burden of development and improve testing efficiency.

Inactive Publication Date: 2016-03-30
BEIJING QIHOO TECH CO LTD +1
View PDF3 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The inventor found that, in the above solution, the development and testing processes are not separated, and the export of the installed installation package is the development work, while the subsequent installation, test

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 test method and apparatus
  • Code coverage rate test method and apparatus
  • Code coverage rate test method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0075] 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.

[0076] In order to solve the above technical problems, an embodiment of the present invention provides a code coverage test method. figure 1 A flow chart of a method for testing code coverage according to an embodiment of the present invention is shown. Such as figure 1 As shown, the method at least includes the following steps S102 to S106:

[0077] Step S102, creating a specific test resource release channel, wherein the test r...

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 provides a code coverage rate test method and apparatus. The method comprises: newly constructing a specific test resource release channel, wherein the test resource release channel is used for deploying test resources into a test environment; when an instruction for testing a tested program is received, deploying the tested program to the test environment by utilizing the test resource release channel; and testing the tested program in the test environment to obtain code coverage rate data of the tested program. According to embodiments of the invention, when the code coverage rate is tested, the tested program can be deployed to the test environment by utilizing the test resource release channel, so that development work is separated from test work, the burden of development is reduced, and the test efficiency is improved.

Description

technical field [0001] The invention relates to the field of testing, in particular to a method and device for testing code coverage. Background technique [0002] Code coverage (codecoverage) is an important indicator reflecting the degree of coverage of the test case on the program under test, and it is also a reference value for measuring the integrity of the test. [0003] On the Android (Android) platform, open source tools such as Emma and Jacoco (Javacode coverage) can be used for Java code coverage testing, and coverage reports can be easily generated through these open source tools. However, such tools need to be integrated in an IDE (Integrated Development Environment, integrated development environment) such as Eclipse or AndroidStudio, and generate reports by clicking on relevant controls on the IDE, which requires testers to be familiar with this type of IDE. [0004] Taking the use of Jacoco on AndroidStudio as an example, it is necessary to perform a series o...

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 BEIJING QIHOO TECH 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