click to
look inside
Look inside
Manning Early Access Program (MEAP) Read chapters as they are written, get the finished eBook as soon as it’s ready, and receive the pBook long before it's in bookstores.
FREE
You can see any available part of this book for free.
Click the table of contents to start reading.

The Art of Unit Testing, Third Edition

with examples in JavaScript
Roy Osherove
  • MEAP began December 2019
  • Publication in Spring 2022 (estimated)
  • ISBN 9781617297489
  • 325 pages (estimated)
  • printed in black & white

placing your order...

Don't refresh or navigate away from the page.
print book Receive a print copy shipped to your door + the eBook in Kindle, ePub, & PDF formats + liveBook, our enhanced eBook format accessible from any web browser. $28.99 $49.99 you save: $21 (42%) pBook + eBook + liveBook
includes previous edition eBook
Additional shipping charges may apply
FREE domestic shipping on orders of three or more print books
The Art of Unit Testing, Third Edition (print book) added to cart
continue shopping
go to cart

eBook Our eBooks come in Kindle, ePub, and DRM-free PDF formats + liveBook, our enhanced eBook format accessible from any web browser. $23.19 $39.99 you save: $17 (42%) 3 formats + liveBook
includes previous edition eBook
FREE domestic shipping on orders of three or more print books
The Art of Unit Testing, Third Edition (eBook) added to cart
continue shopping
go to cart

Free previous edition eBook included! An eBook copy of the previous edition of this book is included at no additional cost. It will be automatically added to your Manning Bookshelf within 24 hours of purchase.

A book that is seeing a third release must be awesome and this book certainly is.

Sander Zegveld
Look inside
The Art of Unit Testing, Third Edition updates an international bestseller to reflect modern development tools and practices. This expanded edition teaches you to write unit tests for async and observable code, as well as methods of faking functions, modules and refactorings. 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 are carefully designed so that they apply to code written in any language.

about the technology

Unit testing is a universally-adopted practice on dev teams of all sizes. Great developers will tell you that testing is as much a state of mind as a collection of tools and practices. The Art of Unit Testing, Third Edition takes you below the surface and understand how unit testing can transform the way you deliver and maintain software. Now with examples in JavaScript, this new edition has been updated to reflect the characteristics of a modern codebase, including async and modularized, distributed services. The practices and patterns you’ll learn can also be easily applied to other languages, including C#, Java, and Python.

about the book

The Art of Unit Testing, Third Edition guides you step by step from your first simple unit tests to building complete test sets that are maintainable, readable, and trustworthy. Now with examples using JavaScript and Node, this expanded third edition teaches you to write unit tests for async and observable code, as well as methods of faking functions, modules and refactorings. You’ll get to grips with complex subjects such as mocks and stubs, explore how to handle tricky legacy codebases, and save yourself time with tests that function for both frontend and backend applications. The Art of Unit Testing, Third Edition is an essential guide for any unit tester who wants to feel confident writing code that’s easier to create, maintain, and adapt.

what's inside

  • Creating readable, maintainable, and trustworthy tests
  • Working with fakes, stubs, mock objects, and isolation (mocking) frameworks
  • Simple dependency injection techniques
  • Refactoring legacy code

about the reader

The examples in the book use JavaScript and Node and cover the full dev stack.

about the author

Roy Osherove is an internationally-recognized expert in unit testing and agile software methodology. Still an active coder, he consults and trains teams worldwide on the gentle art of unit testing and test-driven development. He is also the author of Elastic Leadership (Manning 2016). Roy’s blog is at ArtOfUnitTesting.com.

FREE domestic shipping on orders of three or more print books

A didactic and entertaining approach to learning the intricacies of unit testing. Gives the the reader a solid mental framework to work with.

Adriaan Beiertz

Previous editions of the book were widely regarded as one of the best books in Unit Testing. The decision to update it to include examples in JavaScript (according to most surveys, the most used programming language in the world) is a smart move, making the book more directly applicable to most programmers, regardless of their server-side stack.

Jaume Lopez

This book is a must read, for any one who would like to be a better javascript developer or wants to start integrating Unit-Tests into their development process. It is a great balance between technical background and hand on examples.

Charles Lam
RECENTLY VIEWED