Skip to main content

Inspecting Automated Test Code: A Preliminary Study

  • Conference paper
Agile Processes in Software Engineering and Extreme Programming (XP 2007)

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 4536))

Abstract

Testing is an essential part of an agile process as test is automated and tends to take the role of specifications in place of documents. However, whenever test cases are faulty, developers’ time might be wasted to fix problems that do not actually originate in the production code. Because of their relevance in agile processes, we posit that the quality of test cases can be assured through software inspections as a complement to the informal review activity which occurs in pair programming. Inspections can thus help the identification of what might be wrong in test code and where refactoring is needed. In this paper, we report on a preliminary empirical study where we examine the effect of conducting software inspections on automated test code. First results show that software inspections can improve the quality of test code, especially the repeatability attribute. The benefit of software inspections also apply when automated unit tests are created by developers working in pair programming mode.

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 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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Ambler, S.W.: When Does(n’t) Agile Modeling Make Sense? http://www.agilemodeling.com/essays/whenDoesAMWork.htm

  2. Beck, K.: Test Driven Development: By Example. Addison-Wesley, New York, NY, USA (2002)

    Google Scholar 

  3. Beck, K.: Extreme Programming Explained: Embrace Change. Addison-Wesley, New York, NY, USA (2000)

    Google Scholar 

  4. Boehm, B., Turner, R.: Balancing Agility and Discipline: A Guide for the Perplexed. Addison-Wesley, New York, NY, USA (2003)

    Google Scholar 

  5. Erdogmus, H., Morisio, M., Torchiano, M.: On the Effectiveness of the Test-First Approach to Programming. In: IEEE Transactions on Software Engineering, vol. 31(3), pp. 226–237. IEEE Computer Society Press, Los Alamitos, CA, USA (2005)

    Google Scholar 

  6. Fagan, M.E.: Design and Code Inspections to Reduce Errors in Program Development. IBM Systems Journal 15(3), 182–211 (1976)

    Article  Google Scholar 

  7. Fowler, M.: Refactoring. Improving the Design of Existing Code. Addison-Wesley, New York, NY, USA (1999)

    Google Scholar 

  8. Laitenberger, O., DeBaud, J.M.: An encompassing life cycle centric survey of software inspection. The Journal of Systems and Software 50(1), 5–31 (2000)

    Article  Google Scholar 

  9. Lanubile, F., Mallardo, T., Calefato, F.: Tool Support for Geographically Dispersed Inspection Teams. In: Software Process: Improvement and Practice, vol. 8(4), pp. 217–231. Wiley InterScience, New York (2003)

    Google Scholar 

  10. Maximilien, E.M., Williams, L.: Assessing Test-Driven Development at IBM. In: Proceedings of the International Conference on Software Engineering (ICSE’03), pp. 564–569 (2003)

    Google Scholar 

  11. Meszaros, G.: XUnit Test Patterns: Refactoring Test Code. Addison Wesley, New York, NY, USA (to appear in 2007) Also available online at http://xunitpatterns.com/

  12. Meszaros, G., Smith, S.M., Andrea, J.: The Test Automation Manifesto. In: Maurer, F., Wells, D. (eds.) XP/Agile Universe 2003. LNCS, vol. 2753, pp. 73–81. Springer, Heidelberg (2003)

    Google Scholar 

  13. Muller, M.M., Tichy, W.E.: Case Study: Extreme Programming in a University Environment. In: Proceedings of the International Conference on Software Engineering (ICSE’01), pp. 537–544 (2001)

    Google Scholar 

  14. Muller, M.M., Hagner, O.: Experiment about Test-First Programming. In: Proceedings of the International Conference on Empirical Assessment in Software Engineering (EASE’02), pp. 131–136 (2002)

    Google Scholar 

  15. Muller, M.M.: Two controlled experiments concerning the comparison of pair programming to peer review. The Journal of Systems and Software 78(2), 166–179 (2005)

    Article  Google Scholar 

  16. Nunit Development Team: Two, M.C., Poole, C., Cansdale, J., Feldman, G.: http://www.nunit.org

  17. Paulk, M.: Extreme Programming from a CMM Perspective. IEEE Software 18(6), 19–26 (2001)

    Article  Google Scholar 

  18. Rakitin, S.: Letters: Manifesto Elicits Cynicism. IEEE Computer 34(12), 4, 6–7 (2001)

    Google Scholar 

  19. Reifer, D.J., Maurer, F., Erdogmus, H.: Scaling Agile Methods. IEEE Software 20(4), 12–14 (2003)

    Article  Google Scholar 

  20. Tomayko, J.: A Comparison of Pair Programming to Inspections for Software Defect Reduction. Computer Science Education 12(3), 213–222 (2002)

    Article  Google Scholar 

  21. Williams, L., Kessler, R.R.: Pair Programming Illuminated. Addison-Wesley, New York, NY, USA (2002)

    Google Scholar 

  22. Williams, L., Kessler, R.R., Cunningham, W., Jeffries, R.: Strengthening the Case for Pair Programming. IEEE Software 17(4), 19–25 (2000)

    Article  Google Scholar 

  23. van Deursen, A., Moonen, L., van den Bergh, A., Kok, G.: Refactoring Test Code. In: Proceedings of the 2nd International Conference on eXtreme Programming and Agile Processes in Software Engineering (XP’01) (2001)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Giulio Concas Ernesto Damiani Marco Scotto Giancarlo Succi

Rights and permissions

Reprints and permissions

Copyright information

© 2007 Springer Berlin Heidelberg

About this paper

Cite this paper

Lanubile, F., Mallardo, T. (2007). Inspecting Automated Test Code: A Preliminary Study. In: Concas, G., Damiani, E., Scotto, M., Succi, G. (eds) Agile Processes in Software Engineering and Extreme Programming. XP 2007. Lecture Notes in Computer Science, vol 4536. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-73101-6_16

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-73101-6_16

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-73100-9

  • Online ISBN: 978-3-540-73101-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics