arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2310.14548cs.SE
收藏

测试坏味道:软件测试中的寄生性能耗消费者

Test Smell: A Parasitic Energy Consumer in Software Testing

Md Rakib Hossain Misu, Jiawei Li, Adithya Bhattiprolu, Yang Liu, Eduardo Almeida, Iftekhar Ahmed

AI总结:

本研究通过分析12个Apache项目并调查62名开发者,揭示了测试坏味道与软件测试能耗的关联,发现有坏味道的测试代码比无坏味道部分多消耗10.92%的能耗,且重构可降低能耗。

摘要:

传统上,能效研究主要集中在硬件层面降低能耗,近年来也开始关注软件开发生命周期的设计和编码阶段。然而,软件测试对能耗的影响尚未引起研究界的关注。具体而言,测试代码设计质量和测试坏味道(例如测试代码中的次优设计和不良实践)如何影响能耗尚未得到研究。本研究考察了12个Apache项目,以分析测试坏味道与其在软件测试中能耗影响之间的关联。我们从两个维度进行了混合方法实证分析:软件维度(对Apache项目进行数据挖掘)和开发者视角(对62名软件从业者进行调查)。我们的研究结果表明:1)测试坏味道与软件测试中的能耗相关。具体而言,测试用例中有坏味道的部分比无坏味道的部分多消耗10.92%的能耗。2)某些测试坏味道比其他坏味道更耗能;3)重构后的测试用例往往比其有坏味道的对应版本消耗更少的能耗;4)大多数开发者缺乏关于测试坏味道对能耗影响的知识。我们在论文结尾提出了若干观察结论,可为未来的研究和发展提供方向。

英文摘要:

Traditionally, energy efficiency research has focused on reducing energy consumption at the hardware level and, more recently, in the design and coding phases of the software development life cycle. However, software testing's impact on energy consumption did not receive attention from the research community. Specifically, how test code design quality and test smell (e.g., sub-optimal design and bad practices in test code) impact energy consumption has not been investigated yet. This study examined 12 Apache projects to analyze the association between test smell and its effects on energy consumption in software testing. We conducted a mixed-method empirical analysis from two dimensions; software (data mining in Apache projects) and developers' views (a survey of 62 software practitioners). Our findings show that: 1) test smell is associated with energy consumption in software testing. Specifically smelly part of a test case consumes 10.92\% more energy compared to the non-smelly part. 2) certain test smells are more energy-hungry than others, 3) refactored test cases tend to consume less energy than their smelly counterparts, and 4) most developers lack knowledge about test smells' impact on energy consumption. We conclude the paper with several observations that can direct future research and developments.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑