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

Efficient multi-system test code coverage rate management method

A technology of code coverage and test code, applied in the field of computer information processing, can solve problems such as inflexibility, occupying version process, narrow focus, etc., and achieve the effect of flexible and controllable data acquisition

Active Publication Date: 2020-04-24
CITIC AIBANK CORPORATION LIMITED
View PDF8 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, for large-scale, multi-system, and frequent software releases, the use of plug-ins cannot meet the current needs of effectively managing code coverage data
For different testing methods (function, unit testing, automated testing, etc.), the obtained code coverage data cannot be effectively distinguished, and there are problems such as too narrow focus
Moreover, the existing solution is inefficient, occupies the overall version process, and is not flexible

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
  • Efficient multi-system test code coverage rate management method
  • Efficient multi-system test code coverage rate management method
  • Efficient multi-system test code coverage rate management method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] Such as figure 1 As shown, this embodiment provides an efficient multi-system test code coverage management method, including the following steps:

[0058] Step 1: The developer submits the code to the GIT code repository to trigger the Jenkins build task. For large-scale commercial software, there will be many software systems, and each software system may have multiple modules, which are usually developed in parallel.

[0059] Step 2: When triggering the Jenkins build task, analyze and record the basic information of each software system. For example: project name, code branch, version number of code submission, etc.

[0060] Step 3: Through the information recorded in step 2, use the curl command to call the service trigger device provided externally to obtain the unit test code coverage.

[0061] Step 4: Step S201 collects parameters when building a task through Jenkins and transmits the parameters to the trigger device. Since it is an asynchronous operation, aft...

Embodiment 2

[0074] refer to figure 1 , embodiment 2 is an implementation of functional testing or automated testing to obtain code coverage, wherein the implementation process of functional testing and automated testing is consistent, but there is a difference in time when the trigger is invoked, so the two processes are merged into One.

[0075] Step 1: The actual deployment process.

[0076] Step 2: Before deploying the software, it is necessary to trigger the trigger and make the actual call. Since it is implemented in an asynchronous manner, Jenkins can handle other affairs by itself without occupying Jenkins resources.

[0077] Step 3: If Figure 5 Step S501, through the parameters received by the trigger device, firstly detect whether the TOMCAT process on the server exists, but if it does not exist, execute step S502, the program executes the replacement port.

[0078] Step 4: Execute to step S503, check whether there is a jacocoagent process, if not, execute step S504, and exec...

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 an efficient multi-system test code coverage rate management method, which comprises the steps of analyzing and recording basic information of a to-be-tested software system, and extracting project parameters; calling a triggering device for providing service to the outside, and transmitting the project parameters to the triggering device for asynchronously acquiring test code coverage rate data; when test code coverage rate data is obtained, the method comprises the following steps of a triggering device judging whether transmitted project parameters exist in a non-executed project list or not by reading a configuration file; if not, querying whether currently executed data exists in a database or not, and if yes, pressing the data into a list to wait for triggering execution; downloading a code and checking a pom file; after the pom file is checked, starting a compiling program to generate a code coverage rate report file; and analyzing the code coverage ratereport file to form code coverage rate data. The method can be used for centralized storage and management of large-scale and distributed system test code coverage rate data.

Description

technical field [0001] The invention relates to the technical field of computer information processing, in particular to a management method for efficient multi-system test code coverage. Background technique [0002] In the process of software testing, a variety of testing methods are usually used, such as: unit testing, functional testing, automated testing, etc. In order to better solve the adequacy of testing, code coverage is introduced to monitor the code coverage of the software under test to meet the current requirements. There is a need for testing. For common programming languages ​​such as java, C++, python, javascript, etc., there are corresponding code coverage detection methods. [0003] However, for large-scale, multi-system, and frequent software releases, the use of plug-ins cannot meet the current needs for effectively managing code coverage data. For different testing methods (function, unit testing, automated testing, etc.), the obtained code coverage d...

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/3688Y02D10/00
Inventor 孙中安
Owner CITIC AIBANK CORPORATION LIMITED
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