Test Case Generation for Program Repair: A Study of Feasibility and Effectiveness

by Zhongxing Yu, Matias Martinez, Benjamin Danglot, Thomas Durieux and Martin Monperrus
Abstract: Among the many different kinds of program repair techniques, one widely studied family of techniques is called test suite based repair. Test-suites are in essence input-output specifications and are therefore typically inadequate for completely specifying the expected behavior of the program under repair. Consequently, the patches generated by test suite based program repair techniques pass the test suite, yet may be incorrect. Patches that are overly specific to the used test suite and fail to generalize to other test cases are called overfitting patches. In this paper, we investigate the feasibility and effectiveness of test case generation in alleviating the overfitting issue. We propose two approaches for using test case generation to improve test suite based repair, and perform an extensive evaluation of the effectiveness of the proposed approaches in enabling better test suite based repair on 224 bugs of the Defects4J repository. The results indicate that test case generation can change the resulting patch, but is not effective at turning incorrect patches into correct ones. We identify the problems related with the ineffectiveness, and anticipate that our results and findings will lead to future research to build test-case generation techniques that are tailored to automatic repair systems.
 View PDF
Open-access (on archives-ouvertes.fr)
Open-access (on arXiv.org)
Citations: [citations]
Other publications of Martin Monperrus

Cite it:

Test Case Generation for Program Repair: A Study of Feasibility and Effectiveness (, , , and ), Technical report 1703.00198, Arxiv, .
Zhongxing Yu, Matias Martinez, Benjamin Danglot, Thomas Durieux and Martin Monperrus, "Test Case Generation for Program Repair: A Study of Feasibility and Effectiveness", 1703.00198, Arxiv, no. 1703.00198, 2017.

Bibtex Entry:

@techreport{Zu2017Test4Repair,
 title = {{Test Case Generation for Program Repair: A Study of Feasibility and Effectiveness}},
 author = {Yu, Zhongxing and Martinez, Matias and Danglot, Benjamin and Durieux, Thomas and Monperrus, Martin},
 url = {https://arxiv.org/pdf/1703.00198},
 year = {2017},
 number = {1703.00198},
 institution = {Arxiv},
}
Powered by bibtexbrowser
Tagged as: