In Section 11.2, we discussed the importance of testing our programs in order for us to have confidence they are working the way they should. We discussed basic tests and the use of a debugger to help us step through our program slowly to find bugs. As our programs become larger, however, we need a more formalized framework and set of tools to help us in our testing. In this chapter, we introduce two such tools: linting or static checking, and formal unit testing frameworks. We conclude by describing the “test-driven development” mindset, which uses all these tools. That mindset can help us to write bulletproof programs.
Review the options below to login to check your access.
Log in with your Cambridge Higher Education account to check access.
If you believe you should have access to this content, please contact your institutional librarian or consult our FAQ page for further information about accessing our content.