英语翻译The only way you can tell if you have tested enough is to measure the tests you do have to make SURE they are complete.This is called "test coverage" and any software test process that doesn't include some kind of software test coverage i

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/25 20:56:23
英语翻译The only way you can tell if you have tested enough is to measure the tests you do have to make SURE they are complete.This is called

英语翻译The only way you can tell if you have tested enough is to measure the tests you do have to make SURE they are complete.This is called "test coverage" and any software test process that doesn't include some kind of software test coverage i
英语翻译
The only way you can tell if you have tested enough is to measure the tests you do have to make SURE they are complete.This is called "test coverage" and any software test process that doesn't include some kind of software test coverage is not really going to provide any protection against defects.
You CAN measure test coverage by checking each test against the code and using that information to assess how well you have actually tested.There are several test coverage measures for this:
C0,statement coverage,tells a developer if all the lines have been tried.
C1,branch coverage,tells if all of the logic has been tried.
S0,module coverage,tells whether all the functions have been tried.
S1,call-pair coverage,tells whether all the connections between calling function and called function have been tried.
There are many tools that measure these,more for C0 and S0 than for C1 and S1.ANY kind of test coverage is better than NO test coverage,but there are limitations.

英语翻译The only way you can tell if you have tested enough is to measure the tests you do have to make SURE they are complete.This is called "test coverage" and any software test process that doesn't include some kind of software test coverage i
唯一的方式您能告诉您是否测试了足够将测量您必须确定他们是完全的测试.这称“测试覆盖面”,并且不包括软件测试覆盖面的任何软件测试过程真正地不提供任何防护反对瑕疵.
您能通过检查每个测试测量测试覆盖面反对代码,并且使用那信息估计多么恰当您实际上测试了.有数测试覆盖面措施为此:
如果所有线被尝试了,C0,声明覆盖面,告诉开发商.C1,分支覆盖面,告诉所有逻辑是否被尝试了.S0,模块覆盖面,分辨所有作用是否被尝试了.S1,叫对覆盖面,分辨是否叫之间的所有连接
S0,模块覆盖面,分辨所有作用是否被尝试了.S1,叫对覆盖面,分辨叫作用和叫的作用之间的所有连接是否被尝试了.有测量这些,更多为C0和S0比对于C1和S1的许多工具.任何测试覆盖面比测试覆盖面不好,但是有局限.

唯一的方式您能告诉如果您测试了足够将测量您必须确定他们是完全的测试。这叫做"test coverage" 并且任何软件测试过程, doesn't 包括一些软件测试覆盖面真正地不提供任何保护反对瑕疵
您能测量测试覆盖面由检查各个测试反对代码并且使用那信息估计多么恰当您实际上测试了。有数测试覆盖面措施为这:
C0, 声明覆盖面, 告诉开发商如果所有线被尝试了。
C1, 分支...

全部展开

唯一的方式您能告诉如果您测试了足够将测量您必须确定他们是完全的测试。这叫做"test coverage" 并且任何软件测试过程, doesn't 包括一些软件测试覆盖面真正地不提供任何保护反对瑕疵
您能测量测试覆盖面由检查各个测试反对代码并且使用那信息估计多么恰当您实际上测试了。有数测试覆盖面措施为这:
C0, 声明覆盖面, 告诉开发商如果所有线被尝试了。
C1, 分支覆盖面, 告诉如果所有逻辑被尝试了。
S0, 模块覆盖面, 告诉是否所有作用被尝试了。
S1, 叫对覆盖面, 告诉是否所有连接在叫作用和叫的作用之间被尝试了。
有测量这些, 更多为C0 和S0 比对于C1 和S1 的许多工具。任一测试覆盖面比测试覆盖面不好, 但是有局限。

收起