Title of article :
A test-driven approach to code search and its application to the reuse of auxiliary functionality
Author/Authors :
Lazzarini Lemos، نويسنده , , Otلvio Augusto and Bajracharya، نويسنده , , Sushil and Ossher، نويسنده , , Joel and Masiero، نويسنده , , Paulo Cesar and Lopes، نويسنده , , Cristina، نويسنده ,
Issue Information :
ماهنامه با شماره پیاپی سال 2011
Abstract :
Context
re developers spend considerable effort implementing auxiliary functionality used by the main features of a system (e.g., compressing/decompressing files, encryption/decription of data, scaling/rotating images). With the increasing amount of open source code available on the Internet, time and effort can be saved by reusing these utilities through informal practices of code search and reuse. However, when this type of reuse is performed in an ad hoc manner, it can be tedious and error-prone: code results have to be manually inspected and integrated into the workspace.
ive
s paper we introduce and evaluate the use of test cases as an interface for automating code search and reuse. We call our approach Test-Driven Code Search (TDCS). Test cases serve two purposes: (1) they define the behavior of the desired functionality to be searched; and (2) they test the matching results for suitability in the local context. We also describe CodeGenie, an Eclipse plugin we have developed that performs TDCS using a code search engine called Sourcerer.
aluation consists of two studies: an applicability study with 34 different features that were searched using CodeGenie; and a performance study comparing CodeGenie, Google Code Search, and a manual approach.
s
tudies present evidence of the applicability and good performance of TDCS in the reuse of auxiliary functionality.
sion
aper presents an approach to source code search and its application to the reuse of auxiliary functionality. Our exploratory evaluation shows promising results, which motivates the use and further investigation of TDCS.
Keywords :
Software reuse , Software Development , CODE SEARCH , development tools , Test-driven development
Journal title :
Information and Software Technology
Journal title :
Information and Software Technology