Chapter 10. Performing End-to-End Testing

In the previous chapter, you finished the core functionality of your social application by adding WebSockets for live updating. You’ll now ensure the stability with your application by adding in testing. There are two types of testing you will use in your project: end-to-end tests and unit tests.

End-to-end tests, also known as integration tests or feature tests, are used to test the functionality of the application as if a user were running it. They test all the components of the application from the UI down to the database. These tests are slow but are best for catching unexpected errors. End-to-end tests will be the focus of this chapter.

Unit tests involve testing a component by itself. In Chapters ...

Get Write Modern Web Apps with the MEAN Stack: Mongo, Express, AngularJS, and Node.js 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.