Unit testing method and system
A unit test and sub-unit technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as failure to meet test code coverage requirements, and achieve the effect of ensuring code quality
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0050] To further illustrate the features of the present invention, please refer to the following detailed description and accompanying drawings of the present invention. The attached drawings are for reference and description only, and are not intended to limit the protection scope of the present invention.
[0051] like figure 1 As shown, this embodiment discloses a unit testing method for unit testing a function or private function containing private members, including the following steps S1 to S3:
[0052] S1. Find the test file where the original test case is located, and add a reference to the reflected namespace in the header of the test file;
[0053] S2. Use reflection to access private members or private functions and write new test cases;
[0054] S3. According to the new test case, execute the unit test code and generate a test report.
[0055] Specifically, as figure 2 As shown in the figure, when unit testing a function containing private members, the above ...
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