O'Reilly logo

Single Page Web Applications: JavaScript end-to-end by Michael S. Mikowski and Josh C. Powell

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

Appendix B. Testing an SPA

This appendix covers
  • Setting up test modes
  • Selecting a test framework
  • Setting up nodeunit
  • Creating a test suite
  • Adjusting SPA modules for test settings

This appendix builds on code we’ve completed in chapter 8. Before starting, you should have the project files from chapter 8, as we’ll be adding to them. We recommend you copy the entire directory structure you created in chapter 8 into a new “appendix_B” directory and update them there.

We’re fans of test-driven development and have worked gonzo projects where the generation of tests was automated. A permutation tool was used to automatically generate thousands of regression tests by simply describing the APIs and their expected behavior. ...

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