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

Method and device for counting program code coverage rate in cloud container

A technology of code coverage and program code, which is applied in the field of statistical methods and devices for program code coverage in containers on the cloud, and can solve problems such as lack of statistical code coverage

Pending Publication Date: 2020-08-14
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For the Kubernetes-based cloud container environment, there is currently a need for statistical code coverage indicators in the test environment. However, due to the scenario that the application image cannot be modified after being submitted to the test environment, there is still a lack of a complete statistical code coverage solution that can meet the requirements.

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
  • Method and device for counting program code coverage rate in cloud container
  • Method and device for counting program code coverage rate in cloud container
  • Method and device for counting program code coverage rate in cloud container

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0050] For the cloud-based container environment, there is also a requirement for the test environment to count code coverage indicators. For scenarios where the application image cannot be modified after being submitted to the test environment, there is still a lack of a complete statistical code coverage solution that can meet the requirements.

[0051] The present invention provides a method for counting program code coverage in containers on the cloud, such...

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 method and a device for counting the program code coverage rate in a cloud container. The method comprises the steps that a statistical tool container with a code coverage rate statistical tool is arranged at a node where a tested program container is located; establishing a shared directory to enable the statistical tool container and the tested program container to communicate with each other; and after communication is established, performing code coverage rate statistics on the tested program in the tested program container by utilizing the code coverage rate statistics tool in the statistics tool container. According to the method, collection and statistics of the code coverage rate in the container are achieved through node life cycle management of the cloudcontainer in a directory sharing mode, and modification of the application mirror image and code decoupling of the application mirror image can be avoided. In combination with the characteristics of acloud container, the statistical monitoring of the coverage rate is realized under the condition of avoiding the cooperative modification of an application mirror image, and the purpose of checking the code coverage condition in a test environment is achieved.

Description

technical field [0001] The invention relates to cloud technology, in particular to a method and device for counting program code coverage in a container on the cloud. Background technique [0002] Code coverage is a measure in software testing, which is used to reflect the proportion and degree of program code being tested, and is often used to measure the adequacy of code testing. In the traditional non-cloud computing environment, there are already very mature code coverage statistics methods, such as using various integrated development environment plug-ins or independent JAR packages, etc., which can obtain better statistical results during the development or testing phase. [0003] In the cloud computing environment, although there are traditional tools that can be transplanted accordingly and calculate the code coverage rate, they are often used in the traditional development stage of the application, or the application image needs to be modified before it can be used ...

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 INDUSTRIAL AND COMMERCIAL BANK OF CHINA
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