We can test many aspects of our software, from a single function’s return value, to complete user stories. In this video we’ll narrow in on the kind of testing we’ll do most: unit testing.
You run unit tests constantly during the development process to ensure that everything is working, every time you make a change.
You use integration tests when you add new code to pre-existing code, to make sure that not only do all of the pieces work individually as expected, but also that they run together correctly without breaking.
Run your application from start to finish for all the user stories you can think of. This ensures that the program is ready to go live, and that the special details of deployment do not mess up the code you carefully tested on your local machine with unit tests and integration tests. You conduct end-to-end tests occasionally, maybe only a few times during a product’s life-cycle, as they are very time consuming and expensive.
You need to sign up for Treehouse in order to download course files.Sign up