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
Sell Us Your Item
For a $11.30 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
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.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

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

Christian Johansen
4.0 out of 5 stars  See all reviews (18 customer reviews)

List Price: $54.99
Price: $32.84 & FREE Shipping. Details
You Save: $22.15 (40%)
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
Only 18 left in stock (more on the way).
Ships from and sold by Amazon.com. Gift-wrap available.
Want it Friday, May 24? Choose One-Day Shipping at checkout. Details
Free Two-Day Shipping for College Students with Amazon Student

Formats

Amazon Price New from Used from
Kindle Edition $19.80  
Paperback $32.84  
Shop the new tech.book(store)
New! Introducing the tech.book(store), a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

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.


Best Value

Buy Effective JavaScript: 68 Specific Ways to Harness the Power of JavaScript (Effective Software Development Series) and get Test-Driven JavaScript Development (Developer's Library) at an additional 5% off Amazon.com's everyday low price.

Effective JavaScript: 68 Specific Ways to Harness the Power of JavaScript (Effective Software Development Series) + Test-Driven JavaScript Development (Developer's Library)
Buy together today: $53.53

Show availability and shipping 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: 7 x 1.1 x 8.9 inches
  • Shipping Weight: 1.8 pounds (View shipping rates and policies)
  • Average Customer Review: 4.0 out of 5 stars  See all reviews (18 customer reviews)
  • Amazon Best Sellers Rank: #296,529 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
13 of 13 people found the following review helpful
5.0 out of 5 stars A great source for modern Javascript practices March 9, 2011
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?
15 of 17 people found the following review helpful
4.0 out of 5 stars 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?
8 of 8 people found the following review helpful
4.0 out of 5 stars 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
5.0 out of 5 stars impressive
This book make an impressive show of learning about TDD from novice to pro.

I highly recommend this book for anyone curious about Test Driven Development, Unit Testing... Read more
Published 3 months ago by Tomás
1.0 out of 5 stars 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 15 months ago by Frank NL
5.0 out of 5 stars Great book
Great Book, helped out a ton. I am now comfortable implementing JavaScript Unit Tests. Glad the author chose to use JStestDriver.
Published 16 months ago by Edgar martinez
5.0 out of 5 stars 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 16 months ago by Nephi Wright
3.0 out of 5 stars 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 17 months ago by webdad3
5.0 out of 5 stars 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 18 months ago by Art
5.0 out of 5 stars 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 21 months ago by Larry Battle
5.0 out of 5 stars 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 21 months ago by Kendrick Shaw
1.0 out of 5 stars 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 23 months ago by jsreader
5.0 out of 5 stars 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 on May 13, 2011 by Magnar Sveen
Search Customer Reviews
Only search this product's reviews

What Other Items Do Customers Buy After Viewing This Item?


Forums

There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
Topic:
First post:
Prompts for sign-in
 



So You'd Like to...

Create a guide


Look for Similar Items by Category