Home 单元测试的几个层次implementationstrategiesforunittests
Post
Cancel

单元测试的几个层次implementationstrategiesforunittests

1. 粗糙测试   (编译通过就行, 比如,一个controller里只测一个action )

2. 一般测试   (测试 controller, view, model, lib , 不测试web service )

3. 精细测试     ( 各个分支都要测试到。。。 web service 也测试,管他mock 不mock )

这个是草稿

This post is licensed under CC BY 4.0 by the author.