DeepRead
Cover of Test-driven JavaScript development

Test-driven JavaScript development

Christian Johansen · 2011

Writing, design and web craft › JavaScript programming

#4,740 most recommended

About the book

A practical guide to unit testing and test-driven development for JavaScript, covering the red-green-refactor cycle, choosing and running test tools in browsers and on the command line, and testing asynchronous and DOM-heavy code. It is aimed at developers who already know the language and want a disciplined way to build and verify client-side and Node-style code. Writing tests first is a design practice as well as a verification practice, and it keeps JavaScript code small, modular, and easier to change. Test doubles such as stubs, spies, and mocks let each unit be tested in isolation from its collaborators. Tests should run quickly and automatically, ideally in more than one environment, so that they can serve as a continuous check on the code.

Written by Claude from what it knows of this book.

What Hacker News says 50% recommend · 0% critical

024201020112012201320142011 peak · 4
This bookAverage book in JavaScript programming

In the commenters’ own words

What Open Library readers say

No Open Library reader has rated it yet.

  • 1 want to read
  • 0 reading
  • 0 have read

Open Library’s page for the book

What critics say, via Wikipedia

No Wikipedia article about this book yet, so no critics to quote.

Reddit communities — coming later

The threads it came up in

Details

First published
2011
ISBN
9780321683915
Editions known
2 at Open Library
Open Library
OL16944785W

JavaScript (Computer program language)Javascript (computer program language)

Explore in the mosaic

Read next: its neighbours on the mosaic