Jump to ratings and reviews
Rate this book

Learning Behavior-driven Development with JavaScript

Rate this book
Create powerful yet simple-to-code BDD test suites in JavaScript using the most popular tools in the community TThis book is ideal for any JavaScript developer who is interested in producing well-tested code. If you have no prior experience with testing, Node.js, or any other tool, do not worry, as they will be explained from scratch. JavaScript is not only widely used to create attractive user interfaces for the Web, but with the advent of Node.js, it is also becoming a very popular and powerful language to write server-side applications. Using behavior-driven development and some common testing patterns and best practices, you will be able to avoid these traps. This book will show you how to do BDD in a practical way. We will start with a basic introduction of what BDD is and why the classical approach to testing has failed. Afterwards, we will dive directly into an introduction to Node.js, Mocha, and Sinon.JS. Finally, we will cover more advanced subjects such as how to write a fast and effective test suite for a RESTful web API, and how to do the same with a rich UI using Cucumber.js and Protractor. This book will give you great insight into how to architect your system to make it more testable and modular, but at the same time avoid the nightmare of abusing mock objects.

392 pages, Paperback

First published February 19, 2015

6 people are currently reading
26 people want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
5 (50%)
4 stars
3 (30%)
3 stars
1 (10%)
2 stars
1 (10%)
1 star
0 (0%)
Displaying 1 - 3 of 3 reviews
11 reviews
July 15, 2015
BDD is a refinement of TDD; it emphasizes that the important thing is to test behaviors of the system that are relevant to the stakeholders and users.

Profile Image for Hans.
26 reviews1 follower
December 30, 2017
got me up to speed again with current JavaScript
Profile Image for Francisco Garcia.
13 reviews2 followers
January 9, 2016
Most of the book covers feature testing which will be a very valuable skill to have for many developers. If you are already familiar with BDD and need and update on how it is done with the latest tooling for JS this is your book.
Displaying 1 - 3 of 3 reviews

Can't find what you're looking for?

Get help and learn more about the design.