Summary
In this chapter, we defined what unit testing is by writing our own examples. We have gone through building and passing unit tests, as well as writing our own shell scripts to help us execute different automated test configurations to make it easier for us to debug or run test coverages. We’ve gone through what a test coverage report is, and how we can use it.
We’ve written our first integration test and configured our development environment so that we can also use a MySQL database. We’ve created a solution class that will perform the business logic that we need to pass the test, and we are also able to verify that what we persist in the database is what we have intended.
In this chapter, we tried to clearly define what a unit test and an integration test are, how they differ, and why we must separate them into their baskets or test suites.
In the next chapter, we will be talking about Behaviour-Driven Development (BDD). We will understand what...