Skip to main content Accessibility help
Internet Explorer 11 is being discontinued by Microsoft in August 2021. If you have difficulties viewing the site on Internet Explorer 11 we recommend using a different browser such as Microsoft Edge, Google Chrome, Apple Safari or Mozilla Firefox.

Chapter 23: Make It Correct: Linting and Unit Testing

Chapter 23: Make It Correct: Linting and Unit Testing

pp. 683-692

Authors

, University of Washington, Bothell, , City College, City University of New York, , Envestnet Tamarac, Washington, , University of Washington, Bothell, , Biota Technology Inc., California
Resources available Unlock the full potential of this textbook with additional resources. There are free resources and Instructor restricted resources available for this textbook. Explore resources
  • Add bookmark
  • Cite
  • Share

Summary

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.

About the book

Access options

Review the options below to login to check your access.

Purchase options

eTextbook
US$74.00
Paperback
US$74.00

Have an access code?

To redeem an access code, please log in with your personal login.

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.

Also available to purchase from these educational ebook suppliers