The Art of Unit Testing: with Examples in JavaScript (3rd Edition) product image

The Art of Unit Testing: with Examples in JavaScript (3rd Edition)

Nerd Approved:
(5/5)
Review by Joshua Morris on
View on AmazonAs an Amazon Associate, I earn from qualifying purchases at no additional cost to you.

Review

The Art of Unit Testing is the book that taught me the difference between tests that help and tests that just exist. Osherove's third edition updates the examples for JavaScript, but the principles are timeless. The chapter on test structure—arrange, act, assert—gave me a framework for writing readable tests, and the section on mocks and stubs helped me understand when to use each. The book's focus on test quality over quantity resonated: I'd been writing tests that passed but didn't catch bugs, and Osherove shows why. The chapter on test maintainability helped me understand why some test suites are a joy to work with while others are a burden. My only critique is that some examples feel contrived, but the principles are sound. I've recommended it to developers who are writing tests but not getting value from them, and it's helped them see what they're missing. Essential reading for anyone who wants to write tests that actually help.

✓ Pros

  • Clear framework for writing readable, maintainable tests
  • Third edition updates examples for modern JavaScript
  • Focus on test quality over quantity—tests that actually help
  • Excellent chapter on when to use mocks vs. stubs

✗ Cons

  • Some examples feel contrived compared to real-world complexity
  • Assumes you're already writing tests—not for complete beginners
  • Could use more examples of testing async code and modern patterns

Specifications

Pages384
PublisherManning Publications
LanguageEnglish
Isbn13978-1617296279
Publication DateMay 5, 2020

Related Products

97 Things Every Programmer Should Know: Collective Wisdom from the Experts product image

97 Things Every Programmer Should Know: Collective Wisdom from the Experts

Nerd Approved:
(4/5)

Edited by Kevlin Henney, a curated set of timeless, page-length lessons from industry legends. Each item is a standalone insight you can read in five minutes.

Timeless, page-length lessons from industry legends. Perfect for busy developers—read one item in five minutes, learn something useful, put it down. Read full review.

As an Amazon Associate, I earn from qualifying purchases at no additional cost to you.
Accelerate: The Science of Lean Software and DevOps: Building and Scaling High Performing Technology Organizations product image

Accelerate: The Science of Lean Software and DevOps: Building and Scaling High Performing Technology Organizations

Nerd Approved:
(5/5)

Research-backed field guide that ties lean software delivery habits to measurable business outcomes, unpacking the DORA metrics, cultural foundations, and continuous delivery capabilities that separated top performers in the Accelerate State of DevOps reports.

Still my go-to reference when aligning execs around DORA metrics and the cultural work that makes continuous delivery stick. Read full review.

As an Amazon Associate, I earn from qualifying purchases at no additional cost to you.
Algorithms (4th Edition) product image

Algorithms (4th Edition)

Nerd Approved:
(5/5)

The leading algorithms textbook with clear Java implementations and full coverage of sorting, searching, graph processing, and string processing.

Leading algorithms textbook with clear Java implementations and an unmatched companion ecosystem of exercises, visualizations, and lectures. Read full review.

As an Amazon Associate, I earn from qualifying purchases at no additional cost to you.