一种基于Bullseye反推代码行对应测试用例的方法  被引量:1

A Method Based on Bullseye to Infer Code Line Corresponding Test Case

在线阅读下载全文

作  者:周丽雯 ZHOU Liwen(Shanghai Zhaoxin integrated circuit Co.,Ltd,Shanghai 201203,China)

机构地区:[1]上海兆芯集成电路有限公司,上海201203

出  处:《集成电路应用》2020年第6期16-18,共3页Application of IC

基  金:上海市科学技术委员会科技创新行动计划高新技术基金(14DZ1104300)。

摘  要:测试用例一直是软件质量稳定性的基本保障,测试用例覆盖的测试需求越多,说明这个测试用例越能发现代码潜在的问题,而代码覆盖率能很好反应测试用例覆盖的代码情况。现有很多软件可以统计测试用例的代码覆盖率情况,但是却没有给出代码对应的测试用例信息,基于Bullseye的统计结果,提出一种方法可以反推出代码的每个条件、分支、语句分别被哪些测试用例覆盖过,这样不仅可以帮助测试人员更好地了解、开发、利用测试用例,减少冗余测试用例的产生,也有助于测试人员在测试资源有限的情况下,针对特定需求筛选出少量必要的测试用例,实验结果表明,此方法可以快速查出对应的测试用例,帮助测试人员更好的管理测试用例。Testing cases are always the basic guarantee for software quality stability.The more test requirements covered by test cases,the more potential problems can be found in the code,and the code coverage can well reflect the code covered by testing cases.Existing a lot of software can get code coverage ratio,but there was no information about code corresponding to the given test case,this article,based on the statistical results of Bullseye,put forward a kind of method that can find each condition,branch,the statement is covered by what kind of testing cases,it can not only help the tester better understanding,developing,using testing cases,reducing redundant test cases generation,butalsocan help the tester select a small amount of necessary testing cases under the condition of limited resources for a particular demand,the experimental results show that this method can quickly identify the corresponding test cases and help testers to manage test cases better.

关 键 词:集成电路设计 测试代码 代码覆盖率 测试用例 Bullseye软件 

分 类 号:TN402[电子电信—微电子学与固体电子学] TP311.5[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象