摘要
单元测试在铁路信号电子产品软件的研发过程中占有重要比重,而覆盖率则是单元测试中衡量测试质量的一个重要指标。本文重点介绍软件单元测试过程中为何选择修正条件判定覆盖,而不选择条件判定覆盖和组合条件覆盖作为覆盖率评判标准,同时重点介绍了如何设计出满足修正条件判定覆盖的最小测试用例集的两种方法 :真值对法、唯一原因法。
Unit testing plays an important role in the development of railway signal electronic product software, and coverage is an important index to measure the test quality in unit testing. In this paper, we focus on how to choose the modified condition to determine coverage in the process of software unit testing instead of the conditional and combined condition coverage as the coverage criteria. At the same time, it mainly introduces how to design the minimum test case set which satisfies the revision condition to determine the coverage rate: True Value Pairing Method and Unique Cause Method.
作者
林双才
Lin Shuangcai(Xi’an railway signal Co.,Ltd.,Xi’an Shaanxi,710000)
出处
《电子测试》
2019年第23期52-54,共3页
Electronic Test
关键词
条件判定覆盖
修正条件判定覆盖
组合条件覆盖
真值对
condition decision coverage
modify condition decision coverage
composition condition coverage
condition coverage