时隔2年,我又回来了~
单元测试要点
上一篇 /
下一篇 2011-10-09 10:05:50
/ 个人分类:单元测试
Right——BICEP
Right-Are the results right?
B-Are all the boundary conditions correct?
I-Can you check inverse relationships?
C-Can you cross-check results using other means?
E-Can you force error conditions to happen?
P-Are performance characteristics within bounds?
Boundary测试的关键测试部位
Correct
C-Confomance值是否和预期的一致。Are the results conforanced with the expected?
O—Ordering值是否如应该的那样,是有序或者无须的。
R-Range值是否位于荷兰的最小值和最大值之内。
R-Reference代码是否引用了一些不在代码本身控制范围之内的外部资源
E-Existence值是否存在(例如,是否是非null,非0,在一个集合中等待)
C-Cardinality是否恰好有足够的值
T-Time所有事情的发生是否是有序的?是否是在正确的时刻?是否恰好及时?
收藏
举报
TAG: