在野外如何处理测试气味?两个实证研究的故事

Nildo Silva Junior, L. Martins, Larissa Rocha, Heitor A. X. Costa, Ivan Machado
{"title":"在野外如何处理测试气味?两个实证研究的故事","authors":"Nildo Silva Junior, L. Martins, Larissa Rocha, Heitor A. X. Costa, Ivan Machado","doi":"10.5753/JSERD.2021.1802","DOIUrl":null,"url":null,"abstract":"Developing test code may be a time­-consuming process that requires much effort and cost, especially when done manually. In addition, during this process, developers and testers are likely to adopt bad design choices, which may lead to introducing the so­-called test smells in the test code. As the test code with test smells size increases, these tests might become more complex, and as a consequence, much more challenging to understand and evolve them correctly. Therefore, test smells may harm the test code quality and maintenance and break the whole software testing activities. In this context, this study aims to understand whether software testing practitioners unintentionally insert test smells when they implement test code. We first carried out an expert survey to analyze the usage frequency of a set of test smells and then interviews to reach a deeper understanding of how practitioners deal with test smells. Sixty professionals participated in the survey, and fifty professionals participated in the interviews. The yielded results indicate that experienced professionals introduce test smells during their daily programming tasks, even when using their companies’ standardized practices. Additionally, tools support test development and quality improvement, but most interviewees are not aware of test smells’ concepts.","PeriodicalId":189472,"journal":{"name":"J. Softw. Eng. Res. Dev.","volume":"94 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-09-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":"{\"title\":\"How are test smells treated in the wild? A tale of two empirical studies\",\"authors\":\"Nildo Silva Junior, L. Martins, Larissa Rocha, Heitor A. X. Costa, Ivan Machado\",\"doi\":\"10.5753/JSERD.2021.1802\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Developing test code may be a time­-consuming process that requires much effort and cost, especially when done manually. In addition, during this process, developers and testers are likely to adopt bad design choices, which may lead to introducing the so­-called test smells in the test code. As the test code with test smells size increases, these tests might become more complex, and as a consequence, much more challenging to understand and evolve them correctly. Therefore, test smells may harm the test code quality and maintenance and break the whole software testing activities. In this context, this study aims to understand whether software testing practitioners unintentionally insert test smells when they implement test code. We first carried out an expert survey to analyze the usage frequency of a set of test smells and then interviews to reach a deeper understanding of how practitioners deal with test smells. Sixty professionals participated in the survey, and fifty professionals participated in the interviews. The yielded results indicate that experienced professionals introduce test smells during their daily programming tasks, even when using their companies’ standardized practices. Additionally, tools support test development and quality improvement, but most interviewees are not aware of test smells’ concepts.\",\"PeriodicalId\":189472,\"journal\":{\"name\":\"J. Softw. Eng. Res. Dev.\",\"volume\":\"94 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2021-09-08\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"3\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"J. Softw. Eng. Res. Dev.\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.5753/JSERD.2021.1802\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"J. Softw. Eng. Res. Dev.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.5753/JSERD.2021.1802","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3

摘要

开发测试代码可能是一个耗时的过程,需要大量的努力和成本,特别是当手工完成时。此外,在这个过程中,开发人员和测试人员可能会采用糟糕的设计选择,这可能会导致在测试代码中引入所谓的测试气味。随着带有测试气味大小的测试代码的增加,这些测试可能会变得更加复杂,因此,正确地理解和发展它们更具挑战性。因此,测试气味可能会损害测试代码的质量和维护,并破坏整个软件测试活动。在此背景下,本研究旨在了解软件测试从业者在执行测试代码时是否会无意中插入测试气味。我们首先进行了专家调查,分析了一组测试气味的使用频率,然后进行了访谈,以深入了解从业者如何处理测试气味。60位专业人士参与了调查,50位专业人士参与了访谈。产生的结果表明,有经验的专业人员在他们的日常编程任务中引入了测试气味,甚至在使用他们公司的标准化实践时也是如此。此外,工具支持测试开发和质量改进,但是大多数受访者并不知道测试气味的概念。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
How are test smells treated in the wild? A tale of two empirical studies
Developing test code may be a time­-consuming process that requires much effort and cost, especially when done manually. In addition, during this process, developers and testers are likely to adopt bad design choices, which may lead to introducing the so­-called test smells in the test code. As the test code with test smells size increases, these tests might become more complex, and as a consequence, much more challenging to understand and evolve them correctly. Therefore, test smells may harm the test code quality and maintenance and break the whole software testing activities. In this context, this study aims to understand whether software testing practitioners unintentionally insert test smells when they implement test code. We first carried out an expert survey to analyze the usage frequency of a set of test smells and then interviews to reach a deeper understanding of how practitioners deal with test smells. Sixty professionals participated in the survey, and fifty professionals participated in the interviews. The yielded results indicate that experienced professionals introduce test smells during their daily programming tasks, even when using their companies’ standardized practices. Additionally, tools support test development and quality improvement, but most interviewees are not aware of test smells’ concepts.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信