Chapter 14. Guide to Unit Testing
There is an old cliché that says, "If it isn't broken, don't fix it." That only makes sense if it was working in the first place. When we buy products we expect them to work. When we build things we want them to work. Sometimes we can do it without testing, but in this chapter we will talk about times when things should be tested. We will also give a friendly introduction to software testing from the developer side. In this chapter, we'll cover the following topics:
When to test
Understanding assertions
Test suites
Testing include files
Testing custom tags