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
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
What is code quality?6m 57s
-
(Locked)
Coding conventions and standards6m 38s
-
(Locked)
Creating and enforcing coding standards7m 27s
-
(Locked)
Unit, integration, and functional testing10m 30s
-
(Locked)
Testing frameworks5m 53s
-
(Locked)
TDD and BDD test specifications5m 12s
-
(Locked)
Assertions for correctness4m 32s
-
(Locked)
Challenge: Organize your tests58s
-
(Locked)
Solution: Organize your tests1m 46s
-
-
-
-
-
-