Book description
One skill that’s essential for any professional JavaScript developer is the ability to write testable code. This book shows you what writing and maintaining testable JavaScript for the client- or server-side actually entails, whether you’re creating a new application or rewriting legacy code.
From methods to reduce code complexity to unit testing, code coverage, debugging, and automation, you’ll learn a holistic approach for writing JavaScript code that you and your colleagues can easily fix and maintain going forward. Testing JavaScript code is complicated. This book helps experienced JavaScript developers simply the process considerably.
- Get an overview of Agile, test-driven development, and behavior-driven development
- Use patterns from static languages and standards-based JavaScript to reduce code complexity
- Learn the advantages of event-based architectures, including modularity, loose coupling, and reusability
- Explore tools for writing and running unit tests at the functional and application level
- Generate code coverage to measure the scope and effectiveness of your tests
- Conduct integration, performance, and load testing, using Selenium or CasperJS
- Use tools for in-browser, Node.js, mobile, and production debugging
- Understand what, when, and how to automate your development processes
Publisher resources
Table of contents
- Dedication
- Preface
- 1. Testable JavaScript
- 2. Complexity
- 3. Event-Based Architectures
- 4. Unit Tests
- 5. Code Coverage
- 6. Integration, Performance, and Load Testing
- 7. Debugging
- 8. Automation
- Index
- About the Author
- Colophon
- Copyright
Product information
- Title: Testable JavaScript
- Author(s):
- Release date: January 2013
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449323394
You might also like
book
Test-Driven JavaScript Development
For JavaScript developers working on increasingly large and complex projects, effective automated testing is crucial to …
book
Mastering Modular JavaScript
If you have a working knowledge of JavaScript and ECMAScript 6 (ES6), this practical guide will …
video
Web Apps without Web Servers
Learn how to build web apps that not only function without a web server, but also …
book
HTML5 Now: A Step-by-Step Video Tutorial for Getting Started Today
HTML5, touted as the most important change to the Web since the development of CSS, is …