Paperback
Master unit testing: write clean, reliable code in any language.

Art of Unit Testing, The

With Examples in JavaScript

RRP$64.39
$49.48
  • Paperback

    325 pages

  • Release Date

    5 April 2024

Check Delivery Options

Summary

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 understands 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.

Book Details

ISBN-13:9781617297489
ISBN-10:1617297488
Author:Roy Osherove, JavaScript, Vladimir Khorikov
Publisher:Manning Publications
Imprint:Manning Publications
Format:Paperback
Number of Pages:325
Edition:3rd
Release Date:5 April 2024
Weight:550g
Dimensions:15mm x 188mm x 236mm
Mass Market
Digest
Trade Paperback
Art of Unit Testing, The by Roy Osherove - ISBN: 9781617297489
7.40 × 9.29 in
US Letter
mm / in
What They're Saying

Critics Review

“A book that is seeing a third release must be awesome and this book certainly is.” - Sander Zegveld

“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

About The Author

Roy Osherove

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.

Returns

This item is eligible for simple returns within 30 days of delivery. Return shipping is the responsibility of the customer. See our returns policy for further details.