• DocumentCode
    634852
  • Title

    Opportunities for Clone Detection in Test Case Recommendation

  • Author

    Erfani, Mostafa ; Keivanloo, Iman ; Rilling, Juergen

  • Author_Institution
    Dept. of Comput. Sci. & Software Eng., Concordia Univ., Montreal, QC, Canada
  • fYear
    2013
  • fDate
    22-26 July 2013
  • Firstpage
    65
  • Lastpage
    70
  • Abstract
    Regardless of system type, testing is a key aspect of any software product and its development process. In this research, we investigate the use of clone detection techniques towards recommending test case templates to developers and maintainers. We introduce a novel recommendation approach that supports developers by deriving new unit test cases by mining software repositories. Our approach uses a programmer´s current work context and then recommends unit test case examples which match closely this work context. We create first a traceable knowledge base from existing source code modules and their related unit test cases, by taking advantage of state of the art clone detection tools which are used for mining clones across project boundaries. We use these identified clone classes to match them with missing unit test cases within such clone classes. The results of a case study are presented illustrating the applicability of our approach.
  • Keywords
    data mining; knowledge based systems; program testing; clone detection; software product testing; software repository mining; source code module; test case recommendation; test case template; traceable knowledge base; Cloning; Context; Data mining; Java; Software; Software engineering; Testing; clone detection; recommendation system; software testing; test cases;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Computer Software and Applications Conference Workshops (COMPSACW), 2013 IEEE 37th Annual
  • Conference_Location
    Japan
  • Type

    conf

  • DOI
    10.1109/COMPSACW.2013.11
  • Filename
    6605765