Supercharge Your Innovation With Domain-Expert AI Agents!

A customizable automatic unit testing method and system under linux platform

A unit testing and automatic technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problems of time-consuming and labor-intensive, inability to customize unit test cases, lack of notification mechanism for test results, etc., and achieve high real-time performance , the effect of saving labor costs

Active Publication Date: 2019-01-29
WUHAN DOUYU NETWORK TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage of this method is that unit test cases cannot be customized, and it needs to be manually searched in all unit test cases, which is time-consuming and labor-intensive; there is no effective notification mechanism for test results, and it is necessary to manually analyze the test results to find failed unit tests

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
  • A customizable automatic unit testing method and system under linux platform
  • A customizable automatic unit testing method and system under linux platform
  • A customizable automatic unit testing method and system under linux platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

[0034] see figure 1 As shown, the embodiment of the present invention provides a customizable automatic unit testing method under a Linux platform, including: obtaining configuration information in a predefined configuration file, the configuration file is developed by Personnel are pre-defined. The configuration information includes the name of the file or folder that needs to be monitored, whether the corresponding file or folder needs to be unit tested, and the mapping address of the unit test case corresponding to the corresponding file or folder; obtain the file or file that needs to be monitored according to the configuration information Folder list, real-time monitoring of file or folder change information in the list; after monitoring the change information, judge whether the changed file or folder needs to be unit tested according to...

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 a customizable automatic unit test method under a Linux platform, and relates to the field of the automatic test of software. The customizable automatic unit test method comprises the following steps: obtaining configuration information in a pre-defined configuration file, wherein the configuration information comprises a file or a folder name which needs to be monitored, and the mapping address of a unit test case independently corresponding to the corresponding file or folder and also comprises whether the corresponding file or folder needs to carry out a unit test; according to the configuration information, obtaining a file or folder list which needs to be monitored, and carrying out real-time monitoring; and after change information is monitored, according to the configuration information, judging whether the file or folder which is changed needs to be subjected to the unit test or not, searching and obtaining the unit test case according to the mapping address of the corresponding unit test case, and executing the unit tests of all files or folders. By use of the method, the unit test case can be automatically searched, and the unit tests are automatically executed. The invention also discloses a customizable automatic unit test system under the Linux platform.

Description

technical field [0001] The invention relates to the field of software automatic testing, in particular to a customizable automatic unit testing method and system under a Linux platform. Background technique [0002] In order to control the quality of the software code and better avoid the occurrence of program errors, generally speaking, it is necessary to write corresponding unit test cases for the updated code before or after updating the software function code, and execute the unit test cases after each code update. Check whether the software is running correctly, so as to avoid the occurrence of program errors. The existing practice is usually to manually search for the corresponding unit test case and manually start the unit test after monitoring the code update; after the unit test is completed, manually analyze whether the test structure is all passed. The disadvantage of this method is that unit test cases cannot be customized, and it is time-consuming and labor-int...

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 Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3688
Inventor 郑伟
Owner WUHAN DOUYU NETWORK TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More