The MATLAB unit test framework now allows you to incorporate testing into your MATLAB software just as you would your C++ or Java packages. Since entire textbooks have been written on testing methodologies, we will limit ourselves in this chapter to covering the mechanics of using the test framework itself. We also present a couple of recipes that are useful for debugging.
We should, however, say a few words about the goal of software testing. Testing should determine if your software functions as designed. ...