Modifying Your Code for Unit Testing
If you’ve been looking for information on unit testing and how to put it into practice, you’re in the right place. This post explores evaluating your code to determine what to test, understanding how to break your code into smaller functions, and creating your tests. It also covers rudimentary mocking, which is the practice of writing pretend calls to test your code against predictable values.