作者简介

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.

内容简介

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.

下载地址

豆瓣评论

  • 林临
    写的很好,如果在两年前在猿司写test double的时候读到了吵架时会更有战斗力。里面我觉得最有价值的是对伦敦式和经典式的比较,单元测试的单元指的是啥,这个问题会触发很多程序员的偏见,怎么处理依赖只不过是延伸开来的问题罢了,测什么或者测试重点也是DDD理所应当去决定的。在猿司和巨硬写测试碰到了很多问题,也阅读了很多文档,基本上这本书都做了很好的分析,总的来说这本书读晚了,后半部分读的时候作者的想法跟我不谋而合,很快的翻完了,这本书适合工作第二年或者第三年的时候读完。04-17
  • fankai
    非常棒,对于测试和设计都有极好的见解,测试进阶必读02-03
  • 那人很像一条狗
    非常推荐,将单元测试彻底讲清楚了。读是读完了,整理笔记可真不是件容易的事情。11-27
  • 凝霜
    fankai 发的那个读书笔记写的很好,先看那个然后再快速过一遍这本书效率比价高04-24
  • 音符、时间、走走停停
    唯一一部原理、实战结合的,系统性讲解单元测试书籍04-12

猜你喜欢

大家都喜欢