Automated unit testing is a method of testing software. Units (small sections) of the code are rigorously checked to ensure they work correctly. A separate program can be written specifically to test the unit, using every reasonable piece of data the code might encounter in real-world use. The goal of automated unit testing is to demonstrate that each part of a larger software development project works as intended.

Automated unit tests may also aid in documenting the software’s functionality. Developers who didn’t write the code, but want to understand how it works, can view a unit test results to understand how the code interfaces with the system. Developers may also see how the code interacts with the end users who provide it with input and other units of the same software package.

Preventive maintenance, Programming terms, Software development, Test

  • How to create a computer program.