断言轮盘赌仍然是一个测试气味?测试教育视角下的实验

Gina R. Bai, Kai Presler-Marshall, Susan R. Fisk, Kathryn T. Stolee
{"title":"断言轮盘赌仍然是一个测试气味?测试教育视角下的实验","authors":"Gina R. Bai, Kai Presler-Marshall, Susan R. Fisk, Kathryn T. Stolee","doi":"10.1109/vl/hcc53370.2022.9833107","DOIUrl":null,"url":null,"abstract":"—Test smells are commonly perceived as having a negative impact on software maintainability and correctness. Research has shown that Assertion Roulette is the most pervasive smell in industrial and open-source systems. However, some recent studies argue that the impact of Assertion Roulette is not as severe as previously believed, and developers usually consider it acceptable.Thecontroversy over the impact of Assertion Roulette also exists in the area of testing education. To assess the impact of As- sertion Roulette , we conducted a controlled empirical study with 42 CS students. We recruited participants from two populations, CS1 and a graduate testing course, to see what role experience may have in terms of this test smell’s impact. Participants were tasked with implementing a project in Java that passes provided JUnit tests. Through analysis of student-authored source code, we measured the impact of Assertion Roulette using code quality measures and testing behavior measures. Our findings show that the impact of Assertion Roulette on students in this study was minimal. Though students with exposure to the test smell began testing significantly later, they performed similarly in terms of programming quality measures. Thus, it would seem the Assertion Roulette smell is no longer a smell at all, even for less experienced populations like students.","PeriodicalId":351709,"journal":{"name":"2022 IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC)","volume":"113 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-09-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":"{\"title\":\"Is Assertion Roulette still a test smell? An experiment from the perspective of testing education\",\"authors\":\"Gina R. Bai, Kai Presler-Marshall, Susan R. Fisk, Kathryn T. Stolee\",\"doi\":\"10.1109/vl/hcc53370.2022.9833107\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"—Test smells are commonly perceived as having a negative impact on software maintainability and correctness. Research has shown that Assertion Roulette is the most pervasive smell in industrial and open-source systems. However, some recent studies argue that the impact of Assertion Roulette is not as severe as previously believed, and developers usually consider it acceptable.Thecontroversy over the impact of Assertion Roulette also exists in the area of testing education. To assess the impact of As- sertion Roulette , we conducted a controlled empirical study with 42 CS students. We recruited participants from two populations, CS1 and a graduate testing course, to see what role experience may have in terms of this test smell’s impact. Participants were tasked with implementing a project in Java that passes provided JUnit tests. Through analysis of student-authored source code, we measured the impact of Assertion Roulette using code quality measures and testing behavior measures. Our findings show that the impact of Assertion Roulette on students in this study was minimal. Though students with exposure to the test smell began testing significantly later, they performed similarly in terms of programming quality measures. Thus, it would seem the Assertion Roulette smell is no longer a smell at all, even for less experienced populations like students.\",\"PeriodicalId\":351709,\"journal\":{\"name\":\"2022 IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC)\",\"volume\":\"113 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2022-09-12\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"2\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2022 IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/vl/hcc53370.2022.9833107\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/vl/hcc53370.2022.9833107","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

摘要

测试气味通常被认为对软件的可维护性和正确性有负面影响。研究表明,断言轮盘赌是工业和开源系统中最普遍的气味。然而,最近的一些研究表明,断言轮盘的影响并不像以前认为的那样严重,开发人员通常认为它是可以接受的。关于断言轮盘赌影响的争论也存在于考试教育领域。为了评估轮盘赌的影响,我们对42名计算机科学学生进行了对照实证研究。我们从CS1和研究生测试课程两个群体中招募了参与者,以了解经验在这种测试气味的影响中可能起什么作用。参与者的任务是用Java实现一个通过提供的JUnit测试的项目。通过对学生编写的源代码的分析,我们使用代码质量度量和测试行为度量来度量断言轮盘的影响。我们的研究结果表明,在本研究中,断言轮盘赌对学生的影响很小。尽管接触到测试气味的学生开始测试的时间明显较晚,但他们在编程质量测量方面的表现相似。因此,断言轮盘赌的气味似乎不再是一种气味,即使对学生这样经验不足的人群也是如此。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Is Assertion Roulette still a test smell? An experiment from the perspective of testing education
—Test smells are commonly perceived as having a negative impact on software maintainability and correctness. Research has shown that Assertion Roulette is the most pervasive smell in industrial and open-source systems. However, some recent studies argue that the impact of Assertion Roulette is not as severe as previously believed, and developers usually consider it acceptable.Thecontroversy over the impact of Assertion Roulette also exists in the area of testing education. To assess the impact of As- sertion Roulette , we conducted a controlled empirical study with 42 CS students. We recruited participants from two populations, CS1 and a graduate testing course, to see what role experience may have in terms of this test smell’s impact. Participants were tasked with implementing a project in Java that passes provided JUnit tests. Through analysis of student-authored source code, we measured the impact of Assertion Roulette using code quality measures and testing behavior measures. Our findings show that the impact of Assertion Roulette on students in this study was minimal. Though students with exposure to the test smell began testing significantly later, they performed similarly in terms of programming quality measures. Thus, it would seem the Assertion Roulette smell is no longer a smell at all, even for less experienced populations like students.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
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学术官方微信