Chapter 14. Writing end-to-end tests

This chapter covers

  • Setting up end-to-end tests with Nightwatch
  • Writing end-to-end tests with the Nightwatch framework
  • Running Nightwatch tests in Chrome and Firefox

As they say, all great things must come to an end. This is the final chapter of the book, and the last part of your quest to create a frontend testing suite. In this closing chapter, you’ll learn how to test a running application by writing end-to-end tests.

In this book you’ve learned how to write unit tests and snapshot tests. They’re both effective at testing individual units, but they have one glaring problem—they don’t check that the units of code work together. End-to-end tests solve this problem by performing tests against a fully operational ...

Get Testing Vue.js Applications 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.