O'Reilly logo

Write Modern Web Apps with the MEAN Stack: Mongo, Express, AngularJS, and Node.js by Jeff Dickey

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required