From the course: Test-Driven Development in C++

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

What is unit testing?

What is unit testing?

- [Instructor] In this lecture, we're going to start the course on test-driven development by defining what unit testing actually is. We'll go over some of the common types of software testing, look more closely at the specifics of unit testing, and review a simple example. So why do we go through the effort of writing and running unit tests? 'Cause software bugs can hurt the business. We don't want any bugs making it out to the field for our customers to see, as that can hurt our reputation and cause customers to look at using other products. Software testing attempts to address this problem by catching any bugs in the software before they get to the field. This is done systematically, with a multilayered approach, where each layer of testing provides a safety net for catching bugs before they get to the field. There are several levels of testing which provides the layers of safety nets for catching any bugs that might be in the code. The lowest level are unit tests. Unit tests…

Contents