

Mark Ethan Trostler has been writing and testing code for more than 20 years at startups (IPivot) and large corporations (Qualcomm, Intel, Redback Networks, Juniper Networks, Yahoo, and currently Google).
Meer over Mark Ethan TrostlerTestable JavaScript
Ensuring Reliable Code
Samenvatting
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 you 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
Specificaties
Inhoudsopgave
1. Testable JavaScript
-Prior Art
-Code Is for People
-Beyond Application Code
-Recap
2. Complexity
-Code Size
-JSLint
-Cyclomatic Complexity
-Reuse
-Fan-Out
-Fan-In
-Coupling
-Coupling Metrics
-Coupling in the Real World
-Dependency Injection
-Comments
-The Human Test
-Recap
3. Event-Based Architectures
-The Benefits of Event-Based Programming
-The Event Hub
-Web-Based Applications
-Testing Event-Based Architectures
-Caveats to Event-Based Architectures
-A Smarter Hub: The Event Switch
-Recap
4. Unit Tests
-A Framework
-Let's Get Clean
-Writing Good Tests
-Real-World Testing
-Running Tests: Client-Side JavaScript
-Running Tests: Server-Side JavaScript
-Recap
5. Code Coverage
-Coverage Basics
-Code Coverage Data
-A Hands-on Example
-Exercise/Deploy
-Persisting Coverage Information
-Generating Output
-Aggregation
-Hidden Files
-Coverage Goals
-Recap
6. Integration, Performance, and Load Testing
-Integration Testing
-Performance Testing
-Load Testing
-Tracking Resource Usage
-Recap
7. Debugging
-In-Browser Debugging
-Node.js Debugging
-Remote Debugging
-Mobile Debugging
-Production Debugging
-Recap
8. Automation
-What to Automate
-When to Automate
-How to Automate
-Recap
Index
Anderen die dit boek kochten, kochten ook
Net verschenen
Rubrieken
- aanbestedingsrecht
- aansprakelijkheids- en verzekeringsrecht
- accountancy
- algemeen juridisch
- arbeidsrecht
- bank- en effectenrecht
- bestuursrecht
- bouwrecht
- burgerlijk recht en procesrecht
- europees-internationaal recht
- fiscaal recht
- gezondheidsrecht
- insolventierecht
- intellectuele eigendom en ict-recht
- management
- mens en maatschappij
- milieu- en omgevingsrecht
- notarieel recht
- ondernemingsrecht
- pensioenrecht
- personen- en familierecht
- sociale zekerheidsrecht
- staatsrecht
- strafrecht en criminologie
- vastgoed- en huurrecht
- vreemdelingenrecht