Unit Testing - 无名图书

Unit Testing

出版时间

2020-02-29

ISBN

9781617296277

评分

★★★★★
书籍介绍

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.

用户评论
这是这两年我读过的第二本把问题讲清楚的书,另一本是 DDIA. 五星推荐
非常棒,对于测试和设计都有极好的见解,测试进阶必读
近几年单元测试领域的巨著
好的测试因该融入软件开发的整个周期
非常推荐,将单元测试彻底讲清楚了。读是读完了,整理笔记可真不是件容易的事情。
了解单元测试必读的书
大受启发
写的很好,如果在两年前在猿司写test double的时候读到了吵架时会更有战斗力。里面我觉得最有价值的是对伦敦式和经典式的比较,单元测试的单元指的是啥,这个问题会触发很多程序员的偏见,怎么处理依赖只不过是延伸开来的问题罢了,测什么或者测试重点也是DDD理所应当去决定的。在猿司和巨硬写测试碰到了很多问题,也阅读了很多文档,基本上这本书都做了很好的分析,总的来说这本书读晚了,后半部分读的时候作者的想法跟我不谋而合,很快的翻完了,这本书适合工作第二年或者第三年的时候读完。
唯一一部原理、实战结合的,系统性讲解单元测试书籍
Z-Library
收藏