skip to main content
10.1145/1297846.1297944acmconferencesArticle/Chapter ViewAbstractPublication PagessplashConference Proceedingsconference-collections
Article

CodeGenie:: a tool for test-driven source code search

Published:20 October 2007Publication History

ABSTRACT

We present CodeGenie, a tool that implements a test-driven approach to search and reuse of code available on largescale code repositories. With CodeGenie, developers designtest cases for a desired feature first, similar to Test-driven Development (TDD). However, instead of implementing the feature from scratch, CodeGenie automatically searches foran existing implementation based on information available in the tests. To check the suitability of the candidate results in the local context, each result is automatically woven into the developer's project and tested using the original tests. The developer can then reuse the most suitable result. Later, reused code can also be unwoven from the project as wished. For the code searching and wrapping facilities, CodeGenie relies on Sourcerer, an Internet-scale source code infrastructure that we have developed.

References

  1. Koders web site. http://www.koders.com.Google ScholarGoogle Scholar
  2. Krugle web site. http://www.krugle.com.Google ScholarGoogle Scholar
  3. Google Code Search. http://www.google.com/codesearch.Google ScholarGoogle Scholar
  4. Sourcerer web site. http://sourcerer.ics.uci.edu.Google ScholarGoogle Scholar
  5. S. Bajracharya, T. Ngo, E. Linstead, Y. Dou, P. Rigor, P. Baldi, and C. Lopes. Sourcerer: a search engine for open source code supporting structure-based search. In OOPSLA '06: Companion to the 21st ACM SIGPLAN OOPSLA, pages 681--682, New York, NY, USA, 2006. ACM Press. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. K. Beck. Test Driven Development: By Example. Addison-Wesley Professional, November 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. CodeGenie:: a tool for test-driven source code search

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader