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

Unit testing method and device, computing equipment and medium

A technology of unit testing and testing code, applied in the computer field, can solve the problem of low efficiency of the unit testing process and achieve the effect of improving efficiency

Pending Publication Date: 2022-07-01
ALIBABA (CHINA) CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in knuit, unit test cases are stored in the kernel module in the form of functions. After the kernel module is loaded, the Linux kernel will run all the functions included in the kernel module at one time. If the user only wants to run a certain unit test case, you must rewrite the kernel module that only contains a single unit test case, and then run the kernel module that only contains a single unit test case to realize the separate operation of a certain unit test case, resulting in the failure of the unit test process. less efficient

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
  • Unit testing method and device, computing equipment and medium
  • Unit testing method and device, computing equipment and medium
  • Unit testing method and device, computing equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0066] Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numerals in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with one or more embodiments of this specification. Rather, they are merely examples of apparatus and methods consistent with some aspects of one or more embodiments of this specification, as recited in the appended claims.

[0067] It should be noted that: in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described in this specification. In some other embodiments, the method may include more or fewer steps than described in this specification. In addition, a single step described in this specification ...

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

One or more embodiments of the invention provide a unit test method and apparatus, a computing device and a medium, so as to provide a finer-grained unit test case management framework, and under the condition that test codes in a kernel space of an operating system are loaded, the test codes in the kernel space of the operating system are loaded. At least one test module is generated for a test code in a user space of an operating system, each test module is used for managing at least one unit test case, and each unit test case is provided with a corresponding operation identifier, so that the test code can be tested based on the operation identifier corresponding to each unit test case. And executing the test code corresponding to the unit test case of which the operation identifier meets the target condition in the kernel space to obtain an operation log and an operation result of the executed test code, so that independent operation of one or several unit test cases is realized, a kernel module only containing the unit test case does not need to be rewritten, and the operation efficiency is improved. Therefore, the efficiency of the unit test process can be improved.

Description

technical field [0001] One or more embodiments of this specification relate to the field of computer technology, and in particular, to a unit testing method, apparatus, computing device, and medium. Background technique [0002] In computer programming, unit testing refers to the testing work that performs correctness checking on program units (the smallest unit of software design). Through unit testing, program components can be isolated to prove that each program component is correct, in order to achieve the purpose of finding software problems early in the software development process. [0003] In the unit testing process of the Linux operating system, knuit is mainly used as the kernel code unit testing framework to write unit test cases in the kernel module, so that after the kernel module is loaded into the kernel space, the Linux kernel will run the kernel module. of each unit test case to judge the correctness of each program component. [0004] However, in knuit, ...

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/3684G06F11/3688
Inventor 田瑞冬陈健康张礼广宋卓
Owner ALIBABA (CHINA) 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