In a traditional structured programming language, such as C, the unit to be tested is usually a function or a sub-process. In an object-oriented language like C + +, the basic unit to be tested is the class. For the ADA language, developers can choose whether to perform unit tests on separate processes and functions or at the level of the ADA package. The principle of unit testing is also extended to the development of the fourth generation language (4GL), where the basic unit is typically divided into a menu or display interface.
Unit testing is not only used as an auxiliary means of error-free coding in the one-time development process, unit testing must be repeatable, whether in software modification, or in the process of porting to a new operating environment. Therefore, all tests must be maintained throughout the lifecycle of the software system.
Other development activities that are often associated with unit tests include code review, static analysis, and dynamic analysis. Static analysis is to read the source code of the software, look for errors or collect some metric data, do not need to compile and execute the code. Dynamic analysis provides information on execution tracking, time analysis, and testing coverage by observing the action of the Software runtime.
(group) What are the current unit testing tools that are popular