Chapter 10. Final Thoughts

This is the final chapter of the book; here, you will find a wrap-up of the testing approach presented throughout the book, together with some general advice. In this chapter:

  • We will explore the key difference between TDD and BDD
  • We will look at an explanation of what distinguishes a good test from a bad one
  • You will learn why integration and end-to-end tests are not good tests
  • You will learn the correct granularity for a BDD test
  • I will present a summary of which kind of testing approach and which tools you should use to test each part of your system

TDD versus BDD

There are inherently two test-first approaches: Test Driven Development (TDD) and Behavior Driven Development (BDD). Some authors consider them to be the same ...

Get Learning Behavior-driven Development with JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.