Build Robust & Production Quality Applications - Lesson 1: Unit vs. Functional vs. Integration Tests

There are 3 types of tests:

  1. Unit
  2. Functional
  3. Integration

Ranking according to:

Coverage:

Unit > Functional > Integration

Speed:

Unit > Functional > Integration

Realistic:

Integration > Functional > Unit

1) Unit Tests

2) Functional Tests

3) Integration Tests

Builds upon functional tests in the sense that not only must play nicely together but they must achieve a desired business objective.

There are multiple styles of testing.. it has become very much like an "art" as devs often times develop a taste of styles for what to test, when, etc. In this course, we will primarily write unit and functional tests leaving integration tests for important business workflows.