Identifying Application Code to Test
Distinguish areas of code that require testing from areas that don't.
Introduction
The Application code can contain millions of lines of code. Furthermore, the application code uses .NET and other libraries. Not using these libraries may significantly increase the application code size. Let’s also suppose that the application code contains numerous critical classes that are simple in design. Furthermore, the application code partly contains an interface and implementation between the classes. Not all these sections of code require testing. We’ll explore which sections require testing and which don’t.
Classes and methods that don’t require testing
The entire application codebase should be unit tested except for certain categories. These are detailed below.
Libraries
Library classes do not require testing. For instance, there is no practical value in testing the ToUpper
method of the string
class:
Get hands-on with 1400+ tech skills courses.