单元测试点滴



[setup] //每个test方法之前运行
[teardown] //每个test方法之后运行
[pre_setup] //所有test方法之前运行
[pre_teardown] //所有test方法之后运行

-------------------------------------------------------------------------------------------------------------------------------------------

单元测试内容的6个准则:

Right //结果是否正确
B (bordor) //边界值
I (inverse) //反向
C (cross) //交叉
E (error) //错误
P (performance) //性能


posted @ 2013-12-05 14:45  lein.wang  Views(106)  Comments(0)    收藏  举报