作业帮 > 英语 > 作业

英语翻译The only way you can tell if you have tested enough is t

来源:学生作业帮 编辑:大师作文网作业帮 分类:英语作业 时间:2024/11/11 00:01:44
英语翻译
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 t
唯一的方式您能告诉您是否测试了足够将测量您必须确定他们是完全的测试.这称“测试覆盖面”,并且不包括软件测试覆盖面的任何软件测试过程真正地不提供任何防护反对瑕疵.
您能通过检查每个测试测量测试覆盖面反对代码,并且使用那信息估计多么恰当您实际上测试了.有数测试覆盖面措施为此:
如果所有线被尝试了,C0,声明覆盖面,告诉开发商.C1,分支覆盖面,告诉所有逻辑是否被尝试了.S0,模块覆盖面,分辨所有作用是否被尝试了.S1,叫对覆盖面,分辨是否叫之间的所有连接
S0,模块覆盖面,分辨所有作用是否被尝试了.S1,叫对覆盖面,分辨叫作用和叫的作用之间的所有连接是否被尝试了.有测量这些,更多为C0和S0比对于C1和S1的许多工具.任何测试覆盖面比测试覆盖面不好,但是有局限.