摘要
测试用例一直是软件质量稳定性的基本保障,测试用例覆盖的测试需求越多,说明这个测试用例越能发现代码潜在的问题,而代码覆盖率能很好反应测试用例覆盖的代码情况。现有很多软件可以统计测试用例的代码覆盖率情况,但是却没有给出代码对应的测试用例信息,基于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.
作者
周丽雯
ZHOU Liwen(Shanghai Zhaoxin integrated circuit Co.,Ltd,Shanghai 201203,China)
出处
《集成电路应用》
2020年第6期16-18,共3页
Application of IC
基金
上海市科学技术委员会科技创新行动计划高新技术基金(14DZ1104300)。