Method and system for detecting unit test quality
A unit test and unit inspection technology, applied in the computer field, can solve problems that affect the effectiveness of unit tests and the quality of unit tests cannot be well guaranteed, and achieve the effect of improving effectiveness
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] The embodiment of this application provides a method for checking the quality of unit tests, such as figure 1 shown, including:
[0031] Step 101, use the aspect-oriented programming method to obtain the test metadata corresponding to the test element according to the preset primitive language used to describe the test element; further, this step includes: according to the target aspect dimension, from the unit test set and / or the target The application obtains the target aspect information; subdivides the target aspect information into the smallest unit of test information, and the smallest unit of test information is the test element, and stores the test element and its corresponding test metadata in memory; obtains the preset The metalanguage, using the preset metalanguage, the association between the test element and the test metadata, obtains the test metadata corresponding to the test element from the memory. Preferably, in order to increase the operation speed o...
Embodiment 2
[0037] Such as figure 2 Shown is the application architecture diagram of the method for checking the quality of unit tests. The architecture diagram uses the programming language jdk1.6 and above, the development framework is maven3, and the extension package depends on ASPECTJ1.5 or above, but the programming language used, the development Frameworks and extension packages are just examples, and the scope of protection of this application is not limited thereto. exist figure 2 In , the architecture includes: the ASPECTJ framework, the target application, a suite of unit tests, and a system for checking the quality of the unit tests.
[0038] The ASPECTJ framework acts as a running proxy for the target application and at the same time acts as a supporting tool for the system that checks the quality of the unit tests. It should be noted that, due to the different programming languages used, the framework that acts as a supporting tool can be selected according to the diff...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com