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.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call