Skip to main content

Test-Driven Development

  • Chapter
  • First Online:
Automated Unit Testing with ABAP

Abstract

Test-Driven Development, known by its acronym TDD, is one of the many development approaches to have gained traction through the Agile software development movement. It is based on the idea of developing software using a test-first perspective: first, a failing executable test is written; then production software is written capable of passing the test. Accordingly, as its name suggests, the development of production software is being driven by the test. This chapter explores TDD.

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

Access this chapter

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

Institutional subscriptions

Notes

  1. 1.

    Osherove, Roy, The Art of Unit Testing, second edition, Manning, 2014, p. 15

  2. 2.

    Martin, Robert C., Clean Code: A Handbook of Agile Software Craftsmanship, Prentice Hall, 2009, p. 122

  3. 3.

    https://blog.cleancoder.com/uncle-bob/2014/12/17/TheCyclesOfTDD.html

  4. 4.

    Osherove, Roy, The Art of Unit Testing, second edition, Manning, 2014, p. 31

  5. 5.

    Martin, Robert C., The Clean Coder: A Code of Conduct for Professional Programmers, Prentice Hall, 2011, p. 80

  6. 6.

    Ibid

  7. 7.

    Ibid, p. 82

  8. 8.

    In the context of computer science, an argument can be made that a binary integer value of zero is a positive number because its high-order bit is 0, just as it is for all positive integers. Even more absurd is the argument that can be made for packed decimal numbers: that a value of zero is positive when the low-order nibble of its final byte is the binary equivalent of hexadecimal value “A” or “C,” negative when that low-order nibble represents hexadecimal “B” or “D,” and unsigned when representing either “E” or “F.” Here we will simply agree that a value of zero is to have neither a positive nor negative sign. See www.sfu.ca/sasdoc/sashtml/lrcon/z1265705.htm

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2021 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

McDonough, J.E. (2021). Test-Driven Development. In: Automated Unit Testing with ABAP. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-6951-0_11

Download citation

Publish with us

Policies and ethics