单元测试点滴



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

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

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

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


原文地址:https://www.cnblogs.com/lein-wang/p/4333546.html