AngularJS Unit Testing Best Practices

AngularJS is an open-source JavaScript framework, maintained by Google, that assists with running single-page applications. This article written by Andy Shora discusses best practices to peform unit testing and integration testing with AngularJS.

The article starts by discussing the general requirements for unit tests and proposing some tools that can be used for them. Then it explains how to write good unit tests for AngularJS. He also discusses integration testing and the usage of the Grunt open source tool to automate the test and build process. Andy Shora explains that it a right time to write integration tests when user stories are being created. The article also explore the topics of verifying visual aspects and using mock objects in your integration tests.

Read the complete article on