Rough Cuts are manuscripts that are developed but not yet published, available through Safari. Rough Cuts provide you access to the very latest information on a given topic and offer you the opportunity to interact with the author to influence the final publication.
This is the Rough Cut version of the printed book.
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.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
