Test Driven Development

TDD stands for Test Driven Development, where you write the test for what you’re building before you write its actual code.
This works for some people and doesn’t work for others. What’s important is that you write the test.
There are multiple types of tests:

Unit Testing

In this course, when I talk about tests, I’m really talking about unit tests.
A unit is a single feature or aspect of your code (i.e. function, class attribute, class methods, etc.)

Regression Tests

It makes sure that previous mistakes don’t happen again.

Integration Tests

It runs your code through a battery of uses to make sure that a certain process, one that uses multiple units, works from beginning to end.

For example, if you wanted to test the registration flow of an app, you’d have a test that loads the account creation page, fills out and submits the form, follows the redirect, and checks that the user model was created, and that you ended up on the sign in page.