论文标题

重构主张轮盘和重复的断言测试气味:一个受控的实验

Refactoring Assertion Roulette and Duplicate Assert test smells: a controlled experiment

论文作者

Santana, Railana, Martins, Luana, Virgínio, Tássio, Soares, Larissa, Costa, Heitor, Machado, Ivan

论文摘要

测试气味可以降低开发人员与测试代码相互作用的能力。重构测试代码提供了处理测试气味的安全策略。但是,手动重构活动并不是一个微不足道的过程,它通常乏味且容易出错。这项研究旨在评估Raide,这是一种自动识别和重构测试气味的工具。我们提出了对Raide的经验评估,其中我们分析了其在重构主张轮盘和重复的断言测试气味的能力,并将结果与​​手动重构和最新方法进行了比较。结果表明,Raide提供了一种更快,更直观的方法来处理测试气味,而不是使用自动化工具与手动重构相结合的气味检测。

Test smells can reduce the developers' ability to interact with the test code. Refactoring test code offers a safe strategy to handle test smells. However, the manual refactoring activity is not a trivial process, and it is often tedious and error-prone. This study aims to evaluate RAIDE, a tool for automatic identification and refactoring of test smells. We present an empirical assessment of RAIDE, in which we analyzed its capability at refactoring Assertion Roulette and Duplicate Assert test smells and compared the results against both manual refactoring and a state-of-the-art approach. The results show that RAIDE provides a faster and more intuitive approach for handling test smells than using an automated tool for smells detection combined with manual refactoring.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源