Skip to main content

Automated Testing

  • Chapter
  • First Online:
  • 3202 Accesses

Abstract

Before diving into examples of how to test Python code, the nature of tests must be discussed in more detail. Why do we want to have tests? What do we gain from them? What are the downsides? What makes a good test; what’s a bad test? How can we classify tests? And how many of which kinds of tests should we write?

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    Jim Bird, “Bugs and Numbers: How Many Bugs Do You Have in Your Code?” Building Real Software: Developing and Maintaining Secure and Reliable Software in the Real World, http://swreflections.blogspot.de/2011/08/bugs-and-numbers-how-many-bugs-do-you.html , August 23, 2011.

  2. 2.

    Wikipedia, “Mars Climate Orbiter,” https://en.wikipedia.org/wiki/Mars_Climate_Orbiter , 2018.

  3. 3.

    J. L. Lions, “Ariane 5: Flight 501 Failure. Report by the Inquiry Board,” http://sunnyday.mit.edu/accidents/Ariane5accidentreport.html , July 1996.

  4. 4.

    Wikipedia, “Big ball of mud,” https://en.wikipedia.org/wiki/Big_ball_of_mud , 2018.

  5. 5.

    Wikipedia, “Extreme programming,” https://en.wikipedia.org/wiki/Extreme_programming , 2018.

  6. 6.

    Vlad Krasnov, “On the Dangers of Intel’s Frequency Scaling,” Cloudflare, https://blog.cloudflare.com/on-the-dangers-of-intels-frequency-scaling/ , November 10, 2017.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Moritz Lenz

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Lenz, M. (2019). Automated Testing. In: Python Continuous Integration and Delivery. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4281-0_1

Download citation

Publish with us

Policies and ethics