Books & Videos

Table of Contents

  1. Chapter 1 Welcome to BDD

    1. The test-first approach

    2. BDD versus TDD

    3. Exploring unit testing

    4. The structure of a test

    5. What is a good test?

    6. Summary

  2. Chapter 2 Automating Tests with Mocha, Chai, and Sinon

    1. Node and NPM as development platforms

    2. Configuring your project with NPM

    3. Introducing Mocha

    4. More expressive assertions with Chai

    5. Red/Green/Refactor

    6. Test doubles with Sinon

    7. Summary

  3. Chapter 3 Writing BDD Features

    1. Introducing myCafé

    2. Writing features

    3. Testing asynchronous features

    4. Organizing our test code

    5. Finishing our feature

    6. Summary

  4. Chapter 4 Cucumber.js and Gherkin

    1. Getting started with Gherkin and Cucumber.js

    2. Writing advanced scenarios

    3. Useful Cucumber.js features

    4. Cucumber.js or Mocha?

    5. Summary

  5. Chapter 5 Testing a REST Web API

    1. The approach

    2. Testing the GET order feature

    3. Testing slave resources

    4. Summary

  6. Chapter 6 Testing a UI Using WebDriverJS

    1. Our strategy for UI testing

    2. WebDriverJS

    3. Testing a rich Internet application

    4. Summary

  7. Chapter 7 The Page Object Pattern

    1. Introducing the Page Object pattern

    2. A page object for a rich UI

    3. Summary

  8. Chapter 8 Testing in Several Browsers with Protractor and WebDriver

    1. Testing in several browsers with WebDriver

    2. Welcome Protractor!

    3. Summary

  9. Chapter 9 Testing Against External Systems

    1. Writing good test doubles

    2. Testing against external systems

    3. Summary

  10. Chapter 10 Final Thoughts

    1. TDD versus BDD

    2. A roadmap to BDD

    3. Concluding the book

    4. Next steps?

    5. Summary