From the course: Node.js: Testing and Code Quality

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Unit, integration, and functional testing

Unit, integration, and functional testing

From the course: Node.js: Testing and Code Quality

Unit, integration, and functional testing

- [Instructor] There are a number of different ways to test software. The most common techniques are unit testing, integration testing, and functional testing. Let's explore each in order as they build upon each other. Before I define unit testing, it's good to know what a unit is. A unit is the smallest testable part of an application. The size depends on how the application was built. In a procedural application, it can be an entire module or an individual function. For object-oriented applications, it can be as big as an interface, like a class, or more often an individual method. With that in mind, let's explore unit testing which tests a completely isolated unit of code via its application program interface. Unit tests are performed in memory, meaning no permanent changes take place. This makes them safe to run over and over again. Additionally, unit tests execute very quickly which makes them invaluable to…

Contents