Skip to main content

Abstract

Historically, testing and performance are activities saved for the end of a project. For example, testing is the last step of a project in the traditional waterfall approach. But agile methodologies such as Extreme Programming (XP) have proven that testing-and-performance checking early and often leads to better quality software. Testing and performance checking from day one of development can help developers to locate defects and bottlenecks when they’re introduced, thereby reducing the time and expense of correcting them. In addition, unit testing improves the refactoring and debugging process. Automated unit testing supports refactoring by quickly determining how small changes affect the entire system. Debugging becomes more challenging as applications grow in size. Debugging failed unit tests rather than debugging entire applications can save valuable time.

“Whenever you are tempted to type something into a print statement or a debugger expression, write it as a test instead.”

—Martin Fowler

Refactoring: Improving the Design of Existing Code (Reading, MA: Addison-Wesley, 1999).

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 44.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 59.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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2004 Brian Sam-Bodden and Christopher Judd

About this chapter

Cite this chapter

Sam-Bodden, B., Judd, C. (2004). Testing. In: Enterprise Java Development on a Budget: Leveraging Java Open Source Technologies. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-0682-8_4

Download citation

  • DOI: https://doi.org/10.1007/978-1-4302-0682-8_4

  • Publisher Name: Apress, Berkeley, CA

  • Print ISBN: 978-1-59059-125-3

  • Online ISBN: 978-1-4302-0682-8

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics