Abstract
Test-driven reuse (TDR) proposes to find reusable source code through the provision of test cases describing the functionality of interest to a developer. Proponents claim that their TDR approaches work well. This paper presents the results of an experiment to evaluate the ability of state-of-the-art TDR tools to locate reusable source code for realistic tasks. We find that non-trivial functionality, like that needed in the daily tasks of developers, can largely not be retrieved by these approaches. We provide an analysis of the shortcomings and underlying problems in the existing approaches, and a discussion of potential solutions.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
References
Beck, K., Andres, C.: Extreme Programming Explained: Embrace Change, 2nd edn. Addison-Wesley Professional (2004)
Holmes, R., Walker, R.: Systematizing pragmatic software reuse. ACM Trans. Softw. Eng. Methodol. 21(4), 20/1–20/44 (2012)
Holmes, R., et al.: Approximate structural context matching: An approach to recommend relevant examples. IEEE Trans. Softw. Eng. 32(12), 952–970 (2006)
Hummel, O., Atkinson, C.: Supporting agile reuse through extreme harvesting. In: Concas, G., Damiani, E., Scotto, M., Succi, G. (eds.) XP 2007. LNCS, vol. 4536, pp. 28–37. Springer, Heidelberg (2007)
Hummel, O., et al.: Code Conjurer: Pulling reusable software out of thin air. IEEE Softw. 25(5), 45–52 (2008)
Jeng, J.-J., Cheng, B.: Specification matching for software reuse: A foundation. In: Proc. ACM Symp. Softw. Reusabil., pp. 97–105 (1995)
Joachims, T., et al.: Accurately interpreting clickthrough data as implicit feedback. In: Proc. ACM SIGIR Int. Conf. Info. Retrieval, pp. 154–161 (2005)
Lemos, O., et al.: A test-driven approach to code search and its application to the reuse of auxiliary functionality. Info. Softw. Technol. 53(4), 294–306 (2011)
Linstead, E., et al.: Sourcerer: Mining and searching internet-scale software repositories. Data Min. Knowl. Discov. 18(2), 300–336 (2009)
Zaremski, A., Wing, J.: Signature matching: A key to reuse. In: Proc. ACM Int. Symp. Foundations Softw. Eng., pp. 182–190 (1993)
Ossher, J., et al.: Automated dependency resolution for open source software. In: Proc. Working Conf. Min. Softw. Repos., pp. 130–140 (2010)
Podgurski, A., Pierce, L.: Behavior sampling: A technique for automated retrieval of reusable components. In: Proc. Int. Conf. Softw. Eng., pp. 349–361 (1992)
Reiss, S.: Semantics-based code search. In: Proc. Int. Conf. Softw. Eng., pp. 243–253 (2009)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2013 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Nurolahzade, M., Walker, R.J., Maurer, F. (2013). An Assessment of Test-Driven Reuse: Promises and Pitfalls. In: Favaro, J., Morisio, M. (eds) Safe and Secure Software Reuse. ICSR 2013. Lecture Notes in Computer Science, vol 7925. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-38977-1_5
Download citation
DOI: https://doi.org/10.1007/978-3-642-38977-1_5
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-38976-4
Online ISBN: 978-3-642-38977-1
eBook Packages: Computer ScienceComputer Science (R0)