Canada Spends Logo

Explore our Budget 2026 analysis

Grant: Collaborative Research and Development Grants

University of Waterloo

$41,360.00

Automatic refactoring of test clones

FY 2016-17

Summary
Test maintenance accounts for a substantial fraction of total software development effort: Tests account for 21% of the 1.95 million lines of code in our benchmark suite of 10 open-source Java projects drawn from a variety of domains. Moreover, test code is often repetitive, since it exercises similar functionality. Hence, test cases often consist of methods that are quite similar to each other. In past work, we have found that 44% of the tests in our benchmark suite are similar to-or clones of-at least one other method in the suite. The proposed research will develop a classification of test clones and design and implement novel refactoring techniques for such clones. We will develop a tool that classifies and ranks test clones in a test suite and automatically applies desired test refactorings, improving the extensibility and maintainability of test suites.
Program
Collaborative Research and Development Grants
Location
Ontario, Canada
Recipient Type
Academia
Type
Grant
Source
NSERC's Awards Data

As published

Application id
484446-2015
Name nom
Lam, Patrick
Department département
Electrical & Computer Engineering
Organization id
33
Institution établissement
University of Waterloo
Province en
Ontario
Province fr
Ontario
Country en
CANADA
Country fr
CANADA
Fiscal year exercice financier
2016
Competition year année de concours
2015
Award amount
41360
Program id
CRDPJ
Program name en
Collaborative Research and Development Grants
Program name fr
Subventions de recherche et développement coopérative
Group en
Research partnerships programs
Group fr
Programmes de partenariat
Committee code
96
Committee name en
RPP Internal Decision Cttee
Committee name fr
Cté de décision interne - PPR
Area of application code
801
Area of application group en
Information and communication services
Area of application group fr
Services d'information et de télécommunications
Area of application en
Computer software
Area of application fr
Logiciel
Research subject code
2706
Research subject group en
Information technology
Research subject group fr
Technologie de l'information
Research subject en
Software engineering
Research subject fr
Génie logiciel
Partie
2
Nb partie
2
Application title
Automatic refactoring of test clones
Keyword
NSERC
Application summary
Test maintenance accounts for a substantial fraction of total software development effort: Tests account for 21% of the 1.95 million lines of code in our benchmark suite of 10 open-source Java projects drawn from a variety of domains. Moreover, test code is often repetitive, since it exercises similar functionality. Hence, test cases often consist of methods that are quite similar to each other. In past work, we have found that 44% of the tests in our benchmark suite are similar to-or clones of-at least one other method in the suite. The proposed research will develop a classification of test clones and design and implement novel refactoring techniques for such clones. We will develop a tool that classifies and ranks test clones in a test suite and automatically applies desired test refactorings, improving the extensibility and maintainability of test suites.