The invention discloses a cCode coverage rate testing method and system

A technology of code coverage and testing methods, which is applied in the field of software testing, can solve problems such as low automation, long testing time, and inability to adapt to the diversity of testing environments, and achieve the effect of improving automation

Inactive Publication Date: 2019-04-12
MICRO DREAM TECHTRONIC NETWORK TECH CHINACO
View PDF4 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The current method of testing code coverage takes a long time to test and cannot adapt to the diversity of test environment deployment, resulting in a low degree of automation

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
  • The invention discloses a cCode coverage rate testing method and system
  • The invention discloses a cCode coverage rate testing method and system
  • The invention discloses a cCode coverage rate testing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0032] Before introducing the technical solution of the present invention, introduce some proper nouns involved in the present invention below:

[0033] Code coverage: Indicates the coverage of test cases on the executed source code, which is widely used as a measurement in software testing. The code coverage rate can reflect the degree and proportion of the source code being tested, and it can clearly know the branches, lines, classes, etc. that the source co...

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 code coverage rate testing method and system, and the method comprises the steps: obtaining an execution parameter according to a task for testing the code coverage rate; D; dynamically constructing a test environment according to the execution parameters, t, the dynamic construction of the test environment comprising starting a container engine tool andsetting the test environment to mount a file related to a generated code coverage rate in a host machine into the container engine tool when the container engine tool is started; A; and executing a test case module in the dynamically constructed test environment to obtain a test result of the code coverage rate. According to the method, t, the corresponding execution parameters can be obtained according to different test tasks, t, the multi-scene multi-service application scene can be met by dynamically constructing the test environment, t, the diversity of test environment deployment can be adapted, and therefore the automation degree of software test can be improved.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to a code coverage testing method and system. Background technique [0002] In the prior art, the test code coverage is mainly performed manually, and the workload is relatively large. Before testing coverage, it is necessary to build a test environment in advance according to business requirements, and configure JaCoCo files in each test environment. After the test environment is set up, there is still a series of preparatory work, such as: manually downloading the source code, changing the configuration of the coverage report, and executing the corresponding test cases before testing according to different business requirements. These continuous and repetitive tasks will waste a large amount of human resources in the testing field and a large workload, resulting in low output efficiency of coverage reports and affecting the improvement of test quality. [0003] In addit...

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 Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3676G06F11/3688
Inventor 张文佳王晓宇
Owner MICRO DREAM TECHTRONIC NETWORK TECH CHINACO
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