Testing is hard to get right. There are several ways to shoot yourself in the foot. Testing an SPA (single page application) adds its own idiosyncrasies and complexities. Utilizing well known patterns and practices and avoiding common pitfalls, it is possible to create a fast, maintainable test-driven development process.
This post explains theory behind how to write good unit tests and delves into writing a real world test case with code and full working examples. It uses Durandaljs, but the concepts are applicable to all single page applications.
Your new post is loading...