<?xml version="1.0" encoding="UTF-8"?>
<article key="pdf/10013549" mdate="2024-03-06 00:00:00">
	<author>Ruilian Zhao and  Shukai Zhang and  Yan Wang and  Weiwei Wang</author>
	<title>AssertionDriven Test Repair Based on Priority Criteria</title>
		<pages>133 - 142</pages>
		<year>2024</year>
	<volume>18</volume>
	<number>3</number>
	<journal>International Journal of Computer and Systems Engineering</journal>
	<ee>https://publications.waset.org/10013549.pdf</ee>
	<url>https://publications.waset.org/vol/207</url>
	<publisher>World Academy of Science, Engineering and Technology</publisher>
	<abstract>Repairing broken test cases is an expensive and challenging task in evolving software systems. Although an automated repair technique with intentpreservation has been proposed, it does not take into account the association between test repairs and assertions, leading a large number of irrelevant candidates and decreasing the repair capability. This paper proposes a assertiondriven test repair approach. Furthermore, a intentoriented priority criterion is raised to guide the repair candidate generation, making the repairs closer to the intent of the test. In more detail, repair targets are determined through postdominance relations between assertions and the methods that directly cause compilation errors. Then, test repairs are generated from the target in a bottomup way, guided by the the intentoriented priority criteria. Finally, the generated repair candidates are prioritized to match the original test intent. The approach is implemented and evaluated on the benchmark of 4 opensource programs and 91 broken test cases. The result shows that the approach can fix 89 (8191) broken test cases, which are more effective than the existing intentpreserved test repair approach, and our intentoriented priority criteria work well.</abstract>
	<index>Open Science Index 207, 2024</index>
</article>
