Unit Testing
Unit Testing: Principles, Practices and Patterns is a practical guide to modern unit testing best practices. Microsoft MVP Vladimir Khorikov takes you hands-on with examples of the ideal unit test and unit testing practices, building your skills step by step on a solid foundation. You’ll explore how to design and write tests that check the right aspects of your applications, develop effective and maintainable test suites, and automate your testing process safely. When you are done, you will have a best practice testing suite that ensures your projects are easier to maintain, easier to scale, and easier to adapt to changing needs.
what's inside
A universal frame of reference by which to assess any unit test
Common anti-patterns to identify and avoid
Guidelines on how to refactor a test suite along with the production code it covers
Using integration tests to verify the behavior of the system as a whole
Vladimir Khorikov is an author, blogger, and Microsoft MVP. He has been developing software professionally for over ten years, and has mentored numerous teams on the ins and outs of unit testing.
- 上一篇: Sticks and Stones
- 下一篇: 写一百年再停笔
-
林临04-17写的很好,如果在两年前在猿司写test double的时候读到了吵架时会更有战斗力。里面我觉得最有价值的是对伦敦式和经典式的比较,单元测试的单元指的是啥,这个问题会触发很多程序员的偏见,怎么处理依赖只不过是延伸开来的问题罢了,测什么或者测试重点也是DDD理所应当去决定的。在猿司和巨硬写测试碰到了很多问题,也阅读了很多文档,基本上这本书都做了很好的分析,总的来说这本书读晚了,后半部分读的时候作者的想法跟我不谋而合,很快的翻完了,这本书适合工作第二年或者第三年的时候读完。
-
fankai02-03非常棒,对于测试和设计都有极好的见解,测试进阶必读
-
那人很像一条狗11-27非常推荐,将单元测试彻底讲清楚了。读是读完了,整理笔记可真不是件容易的事情。
-
2024-07-184
-
2024-07-187
-
2024-07-189
-
2024-07-187
-
2024-07-187
-
2024-07-188
-
2024-07-187
-
2024-07-187