Test-driven JavaScript Development

Front Cover
Addison-Wesley, 2011 - Computers - 497 pages
1 Review
An essential reference for the social web, present and future! a must-have for making your website known on the social graph. -- Joshua Gross, president, Cortex Creations, LLC For JavaScript developers working on increasingly large and complex projects, effective automated testing is crucial to success. Test-Driven JavaScript Development isa 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 test-driven development (TDD) principles 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, testers, and other software professionals. Coverage includes * Understanding the concepts of automated tests, TDD, and unit testing * Building effective automated testing workflows * Choosing the right unit testing framework for your needs * Writing more modular and testable code * Testing code for both browsers and servers (using Node.js) * Using TDD to build cleaner APIs, better modularized code, and more robust software * 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 * Writing superior unit tests [cut for space if necessary] About the Web Site The accompanying Web site, tddjs.com, contains all of the book's code listings and additional resources.

What people are saying - Write a review

Review: Test-Driven JavaScript Development

User Review  - Eshan Sudharaka - Goodreads

Still in the third chapter..so far its good.. Read full review

Review: Test-Driven JavaScript Development

User Review  - Chris - Goodreads

First important point: Even though the first word in the book is test, this is primarily a book about development and not testing. Only the first section spent much time on testing frameworks (which ... Read full review

About the author (2011)

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.

Bibliographic information