Home > Store > Open Source > Ajax & JavaScript
Test-Driven JavaScript Development
- By Christian Johansen
- Published Aug 26, 2010 by Addison-Wesley Professional. Part of the Developer's Library series.
- Copyright 2011
- Dimensions: 7 X 9
- Pages: 480
- Edition: 1st
- eBook (Watermarked)
- ISBN-10: 0-321-68404-4
- ISBN-13: 978-0-321-68404-2
Register your product to gain access to bonus material or receive a coupon.
Product Author Bios
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. His clients include many of Norway’s largest financial, telecom, and healthcare companies. A frequent open source contributor, he blogs about JavaScript, Ruby, and Web development at cjohansen.no/en.
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.
Table of Contents
Preface
Part I: Test-Driven Development
Chapter 1: Automated Testing
Chapter 2: The Test Driven Development Process
Chapter 3: Tools of the Trade
Chapter 4: Test to Learn
Part II: JavaScript for Programmers
Chapter 5: Functions
Chapter 6: Applied Functions and Closures
Chapter 7: Objects and Prototypal Inheritance
Chapter 8: ECMAScript 5th Edition
Chapter 9: Unobtrusive JavaScript
Chapter 10: Feature Detection
Part III: Real-World Test Driven Development in JavaScript
Chapter 11: The Observer Pattern
Chapter 12: Abstracting Browser Differences: Ajax
Chapter 13: Streaming Data With Ajax and Comet
Chapter 14: Server-Side JavaScript With Node.js
Chapter 15: TDD and DOM Manipulation: The Chat Client
Part IV: Testing Patterns
Chapter 16: Mocking and Stubbing
Chapter 17: Writing Good Unit Tests
Index
eBook (Watermarked)
$43.99
$35.19
This PDF will be accessible from your Account page after purchase and requires the free Adobe® Reader® software to read it.
The eBook requires no passwords or activation to read. We customize your eBook by discretely watermarking it with your name, making it uniquely yours.
Also available in other formats.
Get access to thousands of books and training videos about technology, professional development and digital media from more than 40 leading publishers, including Addison-Wesley, Prentice Hall, Cisco Press, IBM Press, O'Reilly Media, Wrox, Apress, and many more. If you continue your subscription after your 30-day trial, you can receive 30% off a monthly subscription to the Safari Library for up to 12 months. That's a total savings of $199.

