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.
翻译:测试气味可以降低开发者与测试代码互动的能力。 重制测试代码提供了处理测试气味的安全策略。 但是,人工再制活动并不是一个微不足道的过程,而且往往是乏味和易出错的。 这项研究旨在评估RAIDE, 一种自动识别和再制导测试气味的工具。 我们对RAIDE进行了实证评估,其中我们分析了其在再制振动脉冲和复制口味测试的气味能力,比较了人工再制和最新技术方法的结果。 结果显示,RAIDE在处理测试气味方面提供了一种更快和更直观的方法,而不是使用一种自动的嗅觉工具与人工再制反应相结合。