Testable JavaScript
Ensuring Reliable Code
-
-
4.0 • 2 Ratings
-
-
- $29.99
-
- $29.99
Publisher 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 developmentUse patterns from static languages and standards-based JavaScript to reduce code complexityLearn the advantages of event-based architectures, including modularity, loose coupling, and reusabilityExplore tools for writing and running unit tests at the functional and application levelGenerate code coverage to measure the scope and effectiveness of your testsConduct integration, performance, and load testing, using Selenium or CasperJSUse tools for in-browser, Node.js, mobile, and production debuggingUnderstand what, when, and how to automate your development processes
Customer Reviews
Good book, bad YUI
This book has a very good content but I seems like YUI was a very bad choice for the examples, tho it was most features of other more popular frameworks (such as Jasmine, Mocha or QUnit) the syntax or YUI is very unfriendly, is anyone outside yahoo using it for real projects?
It is pretty easy to write a simple TDD (or BDD) test framework in javascript and it would be awesome if the author had created a very simple test framework and used it for the examples.