Summary
Code testing is one of the most important skills a developer can have. Testing code is like going to the gym. You know it's good for you, but it can often be difficult to begin. In this chapter, we discussed the reasons to test code, several types of code tests, and several JavaScript code testing frameworks. Code tests need to be done to ensure program correctness. Test-Driven Development is one of the simplest ways to begin integrating tests into a project. TDD revolves around writing tests that outline the requirements of any feature or function added, before any implementation code is written. There are many forms of code tests. In this chapter, we covered unit tests, functional tests, and integration tests. These types of code tests are the most common and are generally built from one of two methodologies: black box and white box. Functional, unit, and integration tests can all be built in many of the frameworks covered in the previous topic.
In the next chapter, we will cover...