unit-testing - Prime 路径测试和路径测试有什么区别?

标签 unit-testing testing white-box-testing

我得到了以下类型的白盒测试列表:

Control flow testing 
Data flow testing 
Branch testing 
Statement coverage 
Decision coverage 
Modified condition/decision coverage
Prime path testing 
Path testing

有人可以通过代码给我举例说明 Prime 路径测试和路径测试之间有什么区别吗?

最佳答案

素数路径测试是路径测试的一种特殊情况,其中:“如果 (p) 是最大简单路径,即 (p) 无法在不失去简单性的情况下扩展,则路径 (p) 是素数。”

这是一个很好的解释: http://studylib.net/doc/5705864/prime-path-coverage

关于unit-testing - Prime 路径测试和路径测试有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45834138/

相关文章:

unit-testing - 使用 TestBed 进行 Angular2 测试时出现未定义区域错误

java - 如何使用 Junit 测试长数组?

unit-testing - 测试代码的理想时间范围是多少

r - 超几何测试 (phyper)

unit-testing - 如何在运行单元测试时禁用日志记录?

java - 类必须在内部创建新对象,无法从单元测试中访问该对象

node.js - Mocha 使用 supertest ,类型错误 : cannot read property 'call' of undefined

testing - 单链表的测试用例

unit-testing - 黑盒可以覆盖白盒测试