Test-Driven JavaScript Development (Developer's Library) and over one million other books are available for Amazon Kindle. Learn more


or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Kindle Edition
 
   
Sell Back Your Copy
For a $14.75 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Test-Driven JavaScript Development (Developer's Library)
 
 
Start reading Test-Driven JavaScript Development (Developer's Library) on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Test-Driven JavaScript Development (Developer's Library) [Paperback]

Christian Johansen (Author)
3.9 out of 5 stars  See all reviews (17 customer reviews)

List Price: $54.99
Price: $33.48 & this item ships for FREE with Super Saver Shipping. Details
You Save: $21.51 (39%)
  Special Offers Available
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Only 7 left in stock--order soon (more on the way).
Want it delivered Tuesday, May 22? Choose One-Day Shipping at checkout. Details
Textbook Student FREE Two-Day Shipping for students on millions of items. Learn more

Formats

Amazon Price New from Used from
Kindle Edition $17.69  
Paperback $33.48  
Sell Back Your Copy for $14.75
Whether you bought it on Amazon or somewhere else, you can sell it back through our Book Trade-In Program at the current price of $14.75.
Used Price$29.05
Trade-in Price$14.75
Price after
Trade-in
$14.30

Book Description

September 19, 2010 0321683919 978-0321683915 1
For JavaScript developers working on increasingly large and complex projects, effective automated testing is crucial to success. Test-Driven JavaScript Development is a complete, best-practice guide to agile JavaScript testing and quality assurance with the test-driven development (TDD) methodology. Leading agile JavaScript developer Christian Johansen covers all aspects of applying state-of-the-art automated testing in JavaScript environments, walking readers through the entire development lifecycle, from project launch to application deployment, and beyond.

Using real-life examples driven by unit tests, Johansen shows how to use TDD to gain greater confidence in your code base, so you can fearlessly refactor and build more robust, maintainable, and reliable JavaScript code at lower cost. Throughout, he addresses crucial issues ranging from code design to performance optimization, offering realistic solutions for developers, QA specialists, and testers.

Coverage includes
•    Understanding automated testing and TDD
•    Building effective automated testing workflows
•    Testing code for both browsers and servers (using Node.js)
•    Using TDD to build cleaner APIs, better modularized code, and more robust software
•    Writing testable code
•    Using test stubs and mocks to test units in isolation
•    Continuously improving code through refactoring
•    Walking through the construction and automated testing of fully functional software

The accompanying Web site, tddjs.com, contains all of the book’s code listings and additional resources.


Special Offers and Product Promotions

  • Buy $50 in qualifying physical textbooks, get $2 in Amazon MP3 Credit. Here's how (restrictions apply)

Frequently Bought Together

Test-Driven JavaScript Development (Developer's Library) + JavaScript Patterns + JavaScript: The Good Parts
Price For All Three: $71.26

Show availability and shipping details

Buy the selected items together
  • In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • JavaScript Patterns $19.79

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details

  • JavaScript: The Good Parts $17.99

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details



Editorial Reviews

Review

“A simplified and well-explained book about one of the most underestimated parts of any application life-cycle. Christian Johansen brings real world examples, simple to advanced, and a useful library together in one place. I couldn’t expect more from Test-Driven JavaScript Development. Excellent learning and definitively easy to read.”

—Andrea Giammarchi, lead developer, NOKIA Gate 5 GmbH

 

“A great mix of theory and practical examples makes this a good read for both newcomers to JavaScript/TDD and seasoned JavaScripters wanting to add to their skill set.”

—Jacob Seidelin, freelance web developer, Nihilogic

About the Author

Christian Johansen works for Shortcut AS, a software company focusing on open source technology, Web, and mobile applications. Originally a student in informatics, mathematics, and digital signal processing, he has spent his professional career specializing in Web and front-end development with technologies such as JavaScript, CSS, and HTML. A frequent open source contributor, he blogs about JavaScript, Ruby, and Web development at cjohansen.no.

Product Details

  • Paperback: 600 pages
  • Publisher: Addison-Wesley Professional; 1 edition (September 19, 2010)
  • Language: English
  • ISBN-10: 0321683919
  • ISBN-13: 978-0321683915
  • Product Dimensions: 9 x 7 x 1.1 inches
  • Shipping Weight: 1.8 pounds (View shipping rates and policies)
  • Average Customer Review: 3.9 out of 5 stars  See all reviews (17 customer reviews)
  • Amazon Best Sellers Rank: #187,548 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

Most Helpful Customer Reviews
12 of 12 people found the following review helpful
Format:Paperback
I initially picked this up hoping to learn some stuff about the mechanics of unit-testing in javascript, and maybe some stuff about how to organize your javascript in a testable way. I was very pleasantly surprised to find a book which covers way more.

You'll learn about the fundamentals of modern functional javascript. You'll discover that it's not class-based OO and that functions, closures and object literals are your building blocks.

You'll see some neat, slightly mind-bending way of implementing things. A tiny example - why not keep track of whether a stub function has been called by just setting a bool on the stub function itself!

Most of all, you'll see that it's very feasible to develop real grown-up software using a true test-driven-DESIGN approach using javascript. You'll also get the benefit of being walked through a load of deep, hands-on practical examples covering both server-side JS, client-side DOM-based JS. This material can be pretty dense; I expect to re-read most of the book again at some point.
Comment | 
Was this review helpful to you?
14 of 16 people found the following review helpful
So far so good November 25, 2010
Format:Paperback
Unlike the first reviewer I've actually begun reading this book. Based on the first 2.5 chapters I can tell you without reservation that this author is quite knowledgeable about both Javascript and Test-driven development (TDD). Not only is the book technically excellent in this regard, but the author is also not afraid to state his opinion and challenge conventional wisdom, for instance when addressing the oft-misunderstood issue of temporarily hard-coding data to make tests pass. Furthermore, if you have comments or questions about the book in other online forums such as a blog, the author is very quick to respond. Addendum: having pretty much completed the entire book I will add, there is much excellent introductory material regarding Ecmascript 5 included.
Was this review helpful to you?
7 of 7 people found the following review helpful
Good JavaScript Book December 3, 2010
Format:Paperback
I'm a Django web developer, and like most of us, the unit test coverage for my projects ends where the client-side code begins. I found this book to be extremely useful in teaching how to create tests for JavaScript. The book uses JsTestDriver, which I had never heard of before the book, but is an amazing cross-browser test runner.

The book is written in three parts. The first is an overview of TDD, the second covers JavaScript as a programming language, and third talks about how to integrate JavaScript testing into a project. The first part is short, and the third is, naturally, the meat of the book. The second part, which introduces JavaScript, seems superfluous given the intended audience. It's a good refresher, but the third part builds upon the second one, so part two can't be skipped. It would have been great if the second and third parts would have been more decoupled.

Besides that, is there any web developer that wouldn't benefit from learning how to treat JavaScript as a real soup-to-nuts programming language?
Was this review helpful to you?
Most Recent Customer Reviews
Don't buy on kindle, unless you have the eyesight of a hawk
I purchased the Kindle edition without reading the one star reviews. My mistake. As another reviewer pointed out for the Android experience, the text in the code samples is... Read more
Published 2 months ago by Frank NL
Great book
Great Book, helped out a ton. I am now comfortable implementing JavaScript Unit Tests. Glad the author chose to use JStestDriver.
Published 3 months ago by Edgar martinez
Great JS and TDD book.
I used this book to start my transition as an ActionScript developer to an HTML+JS developer. One of the biggest challenges, and reasons why I took so long to make the change, is... Read more
Published 4 months ago by Nephi Wright
Not enough context with the examples.
I had high hopes for this book. I'm trying to wrap my head around TDD and I thought JavaScript would be the perfect tool to learn (since it is very accessible). Read more
Published 5 months ago by webdad3
Possibly the best JavaScript book you will find
I actually wrote a full review on my blog (linked below), but here are some quick thoughts:
- The book is amazing. Period. Read more
Published 6 months ago by Art
Learn how to write dependable code.
I bought this book to get a deeper understanding of Javascript and to figure out what TDD (Test Driven Development) was. Read more
Published 8 months ago by Larry Battle
An excellent introduction to test driven development and javascript
This book provides an excellent tutorial for test driven development and an initial introduction to JavaScript for experienced programmers. Read more
Published 9 months ago by Kendrick Shaw
good book, terrible on android kindle
The book is good, but not for beginners. However, it is difficult to read on the Android kindle reader. Read more
Published 11 months ago by jsreader
An excellent read for fledgling and experienced js-developers alike
Let's be frank: Even if you're not that into test-driven development, this is the book you want.

In this book, Christian displays stunning prowess with the JavaScript... Read more
Published 12 months ago by Magnar Sveen
Great resource for JavaScript and TDD alike!
Whether you're a novice or seasoned JavaScript developer, and just beginning TDD or a Test Driven guru, this book should prove a valuable addition to your library. Read more
Published 14 months ago by C. Flanigan
Search Customer Reviews
Only search this product's reviews

Inside This Book (learn more)
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Index | Surprise Me!
Search Inside This Book:

What Other Items Do Customers Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(6)
(1)
(1)

Your tags: Add your first tag
 

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums





Look for Similar Items by Category


Look for Similar Items by Subject