Summary

In this chapter, you have learned the differences between unit testing, integration testing, and end-to-end testing and how they can, and should, all be combined together to provide full-fledged testing for a JavaScript SPA. You have learned about the Mocha and Jasmine unit testing frameworks, and how to write unit test with both of them, including how to write unit tests for AngularJS with Jasmine. You have also learned how to launch multiple browsers to test cross-browser compatibility of your unit tests with Karma, and about various other tools that can be added to your testing stack, including Chai and Sinon.js.

Now that you have all the tools you need to build and test a JavaScript SPA, we will bring you to the final chapter to learn ...

Get Mastering JavaScript Single Page Application Development 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.