Ensuring the quality of software systems through testing is essential, yet maintaining test cases poses significant challenges and costs. The need for frequent updates to align with the evolving system under test often entails high complexity and cost for maintaining these test cases. Further, unrepaired broken test cases can degrade test suite quality and disrupt the software development process, wasting developers’ time. To address this challenge, we present TaRGET (Test Repair GEneraTor), a novel approach leveraging pre-trained code language models for automated test case repair. TaRGET treats test repair as a language translation task, employing a two-step process to fine-tune a language model based on essential context data characterizing the test breakage. To evaluate our approach, we introduce TaRBench, a comprehensive benchmark we developed covering 45,373 broken test repairs across 59 open-source projects. Our results demonstrate TaRGET’s effectiveness, achieving a 66.1% exact match accuracy. Furthermore, our study examines the effectiveness of TaRGET across different test repair scenarios. We provide a practical guide to predict situations where the generated test repairs might be less reliable. We also explore whether project-specific data is always necessary for fine-tuning and if our approach can be effective on new projects.
Mon 23 JunDisplayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change
14:00 - 15:20 | Testing 1Journal First / Industry Papers / Research Papers at Aurora B Chair(s): Jialun Cao Hong Kong University of Science and Technology | ||
14:00 20mTalk | Automated Soap Opera Testing Directed by LLMs and Scenario Knowledge: Feasibility, Challenges, and Road Ahead Research Papers Yanqi Su Australian National University, Zhenchang Xing CSIRO's Data61, Chong Wang Nanyang Technological University, Chunyang Chen TU Munich, Xiwei (Sherry) Xu Data61, CSIRO, Qinghua Lu Data61, CSIRO, Liming Zhu CSIRO’s Data61 DOI | ||
14:20 20mTalk | Automated Test Case Repair Using Language Models Journal First Ahmadreza Saboor Yaraghi University of Ottawa, Darren Holden Carleton University, Nafiseh Kahani Carleton University, Lionel Briand University of Ottawa, Canada; Lero centre, University of Limerick, Ireland | ||
14:40 20mTalk | TestGPT-Server: Automatically Testing Microservices with Large Language Models at ByteDance Industry Papers Jue Wang ByteDance, Shuxiang Chen ByteDance, Yu Liu ByteDance, Yuan Deng ByteDance, Lei Zhang ByteDance, Yuanchang Fu ByteDance, Bo Liu ByteDance | ||
15:00 20mTalk | LTM: Scalable and Black-Box Similarity-Based Test Suite Minimization Based on Language Models Journal First RONGQI PAN University of Ottawa, Taher A. Ghaleb Trent University, Lionel Briand University of Ottawa, Canada; Lero centre, University of Limerick, Ireland |
Aurora B is the second room in the Aurora wing.
When facing the main Cosmos Hall, access to the Aurora wing is on the right, close to the side entrance of the hotel.