As I’ve started to work on my TinderClone side project more, I’ve realized the need to have good tests.
Why are tests useful?
Test Driven Development allows you to limit scope and develop in an efficient iterative way.
Tests makes sure things are working when you make changes in other parts of the code.
Tests automate a lot of actions that would be tedious to do manually every time.
When are tests needed?
Tests are especially helpful when you’re trying something experimental and don’t want it to break the rest of your code. (Branching is also a great idea when starting a new feature or something that you’re not sure will work.)
Tests are helpful for debugging large projects.
When are tests not needed?
When I work on smaller projects, I’ve found that tests are not worth the time needed to write them.