Making Your Application Testable
The Cargo Tracker application already has unit tests and good test coverage. That doesn’t mean that your current project or the next one is the same. It could be the case that your current project doesn’t have unit tests or a low test coverage.
Having a low test coverage or not enough unit tests could impose a thread. What if something changes during a migration and no longer works? How are you going to know if something broke? That’s when all kinds of different types of tests come in. In this chapter, you will learn how to create different kinds of tests that test different kinds of aspects of your application.
We’re going to cover the following main topics:
- The impact of testing on your migration
- Measuring code coverage of the project
- A word about test-driven development (TDD)
- How to create unit tests
- How to create integration tests
By the end of the chapter, you should know what kinds...