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).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights 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