软件开发&软件工程
The Art of Unit Testing, 3rd Edition

This bestseller reveals the master’s secrets for delivering robust, maintainable, and trustworthy code.

  • 作者Roy Osherove
  • 出版社Manning Publications
  • 发行日期2024.2
  • 语言英文
  • 格式pdf,epub
  • ISBN9781617297489
  • 标签

Unit testing is more than just a collection of tools and practices—it’s a state of mind! This bestseller reveals the master’s secrets for delivering robust, maintainable, and trustworthy code.

Thousands of developers have learned to hone their code quality under the tutelage of The Art of Unit Testing. This revised third edition updates an international bestseller to reflect modern development tools and practices, as well as to cover JavaScript.

Inside The Art of Unit Testing, Third Edition you will learn how to:

  • Create readable, maintainable, and trustworthy tests
  • Work with fakes, stubs, mock objects, and isolation frameworks
  • Apply simple dependency injection techniques
  • Refactor legacy code with confidence
  • Test both frontend and backend code

Effective unit tests streamline your software development process and ensure you deliver consistent high-quality code every time. With practical examples in JavaScript and Node, this hands-on guide takes you from your very first unit tests all the way to comprehensive test suites, naming standards, and refactoring techniques. You’ll explore test patterns and organization, working with legacy code and even “untestable” code. The many tool-agnostic examples are presented in JavaScript and carefully designed so that they apply to code written in any language.

相关书籍

代码整洁之道
本书阅读对象为一切有志于改善代码质量的程序员及技术经理。
程序员修炼之道(第2版)
对于任何一个有志于做软件开发的工程师而言,值得买,值得一直读反复读
程序员面试金典(第6版)
本书全面而详尽地介绍了程序员应当如何应对面试,才能在面试中脱颖而出
重构:改善既有代码的设计(第2版)
本书适合软件开发人员、项目管理人员等阅读,也可作为高等院校计算机及相关专业师生的参考读物。
MATLAB之父:编程实践(中译本)
面向高中或大学低年级的读者,目的是想通过实验的方法将MATLAB 语言介绍给广大的初学者。
DOOM启世录
本书是一部游戏领域的传记,不同的读者能从中得到不同的体验。