Book description
Automated testing will help you write high-quality software in less time, with more confidence, fewer bugs, and without constant manual oversight. Testing JavaScript Applications is a guide to building a comprehensive and reliable JS application testing suite, covering both how to write tests and how JS testing tools work under the hood. You’ll learn from Lucas de Costa, a core contributor to popular JS testing libraries, as he shares a quality mindset for making testing decisions that deliver a real contribution to your business. You’ll benefit from informative explanations and diagrams, easily-transferable code samples, and useful tips on using the latest and most consolidated libraries and frameworks of the JavaScript ecosystem.About the Technology
Automated testing is essential to delivering good JavaScript applications every time. A complete testing strategy needs to cover functions in isolation, integration between different parts of your code, and correctness from the end user’s perspective. This book will teach you how to deliver reliable software quickly and confidently.
About the Book
Testing JavaScript Applications teaches you how to implement an automated testing plan for JavaScript-based web applications. It describes practical testing strategies, covers useful tools and libraries, and explains how to foster a culture of quality. In this clearly-written, example-rich book, you’ll explore approaches for both backend and frontend applications and learn how to validate your software much more quickly and reliably.
What's Inside
- Unit, end-to-end, and integration testing
- Managing test cost and complexity
- Practicing test-driven development
- Dealing with external dependencies
- Tools like Jest and Cypress
About the Reader
For junior JavaScript developers.
About the Author
Lucas da Costa is a core maintainer of Chai and Sinon.JS, two of the most popular testing tools in the JavaScript ecosystem, and contributed to numerous other open-source projects, including Jest.
Quotes
If you thought you knew how to test JavaScript applications, this book will surprise you!
- Lucian Enache, Glencore
This book is your key to taming the wild frontier of JavaScript testing.
- Bryan Miller, Petrolitix
A detailed, insightful book on JavaScript testing for newcomers and experienced programmers.
- Satej Sahu, Honeywell
An up-to-date, practical book that covers the ground level details of writing real-world tests and testing suites.
- Raul Siles, DinoSec
Table of contents
- inside front cover
- Testing JavaScript Applications
- Copyright
- dedication
- contents
- front matter
- Part 1. Testing JavaScript applications
- 1 An introduction to automated testing
- 2 What to test and when?
- Part 2. Writing tests
- 3 Testing techniques
- 4 Testing backend applications
- 5 Advanced backend testing techniques
- 6 Testing frontend applications
- 7 The React testing ecosystem
- 8 Testing React applications
-
9 Test-driven development
- 9.1 The philosophy behind test-driven development
- 9.2 Writing a JavaScript module using TDD
- 9.3 Testing top-down versus testing bottom-up
- 9.4 Balancing maintenance costs, delivery speed, and brittleness
- 9.5 Setting up an environment for TDD to succeed
- 9.6 TDD, BDD, validations, and specificationsBDD (behavior-driven development)
- Summary
- 10 UI-based end-to-end testing
- 11 Writing UI-based end-to-end tests
- Part 3. Business impact
- 12 Continuous integration and continuous delivery
-
13 A culture of quality
- 13.1 Using type systems to make invalid states unrepresentable
- 13.2 Reviewing code to catch problems machines can’t
- 13.3 Using linters and formatters to produce consistent code
- 13.4 Monitoring your systems to understand how they actually behave
- 13.5 Explaining your software with good documentation
- Summary
- index
- inside back cover
Product information
- Title: Testing JavaScript Applications
- Author(s):
- Release date: May 2021
- Publisher(s): Manning Publications
- ISBN: 9781617297915
You might also like
book
Testing Vue.js Applications
Testing Vue.js Applications is a comprehensive guide to testing Vue components, methods, events, and output. Author …
book
Simplify Testing with React Testing Library
A fast-paced, practical guide to helping you leverage React Testing Library to test the DOM output …
video
Test-Driven Development for JavaScript
10+ Hours of Video Instruction Learn How to Use Test-Driven Development Techniques to Create High-Quality JavaScript …
book
Full Stack Testing
Testing is a critical discipline for any organization looking to deliver high-quality software. This practical book …