检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:黄华俊 吴海涛[1] 高建华[1] 黄子杰 HUANG Hua-jun;WU Hai-tao;GAO Jian-hua;HUANG Zi-jie(Department of Computer Science and Technology,Shanghai Normal University,Shanghai 200234,China)
机构地区:[1]上海师范大学计算机科学与技术,上海200234
出 处:《小型微型计算机系统》2020年第11期2420-2426,共7页Journal of Chinese Computer Systems
基 金:国家自然科学基金项目(61672355)资助.
摘 要:良好的软件测试可以提升软件的可靠性,因此测试代码的设计和实现是国际学者研究的热点之一.测试异味是软件测试中潜在的设计问题,已有研究讨论了测试异味的定义和检测方式,但消除测试异味对代码质量的影响仍不明确.本文量化测试异味消除前后测试代码及关联生产代码的缺陷倾向,进而探究消除测试异味后代码质量的受益程度.在此基础上,本文提出了一种基于SZZ算法和相对风险的方法,以评估测试异味对代码质量的影响.实验聚焦5种测试代码异味,通过挖掘6个开源项目的93个历史发布版本,计算测试异味消除后代码质量的受益程度.实验发现,消除测试异味可显著提升测试代码质量.消除测试异味后,生产代码存在缺陷倾向的概率较之前减少59%.相较于其他4种测试异味,重构EagerTest异味对生产代码质量提升的帮助更大.Well-designed software testing benefits software reliability,so the design of test code is worthy of attention.Test smell is used to describe potential test code design problems.Some studies have defined and detected several test smells,but the impact of test smell removal on software code quality is still unclear.This paper quantified the benefit degree of software code quality by measuring the defect-proneness of production and test code before and after test smell removal.And,this paper put forward an algorithm based on SZZ and relative risk to assess the impact of smelly tests on the quality of the software.This paper detected 5 kinds of test code smell in 93 historical releases of 6 open source projects to quantify the benefit degree of software code quality brought by test smell elimination.Experiment concluded that removing test smell could significantly improve test code quality,production code were 59%less defect-prone than before.Refactoring Eager Test smell could mostly improve production code quality.
分 类 号:TP311[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.224.21.26