Part 1. Testing JavaScript applications

 

Whether you’re designing a website for your uncle’s bakery or a stock-trading platform, the most critical characteristic of your software is whether it works. Your uncle’s customers will certainly order more cheesecakes if you have an intuitive and beautifully designed website. In the same way, brokers on Wall Street will make more money if your platform is fast and responsive. Still, users will blatantly ignore all the effort invested in performance and design if your software is unreliable.

If a program doesn’t work, it doesn’t matter how beautiful or fast it is. Ultimately, kids want more sugar and brokers want to trade more stocks. None of them wants more software.

The first part of Testing JavaScript Applications explains how automated tests help you give people what they want: software that works. Furthermore, it teaches you how to deliver that software in less time with more confidence.

In chapter 1, I’ll introduce automated tests and describe how they can help you and your team.

Chapter 2 presents multiple types of automated tests. It explains when to write each type of test, the pros and cons of each type, and the fundamental patterns you’ll apply throughout the whole book.