Testing in AngularJS

Web developers who wish to develop their skills with AngularJS


Expected Duration
113 minutes

JavaScript testing is imperative due to the dynamically typed nature of the language. AngularJS comes with a comprehensive set of tools to facilitate testing. This course covers testing in AngularJS, from setting up the test environment, to testing controllers, services, filters and directives.


Test Environment Setup

  • start the course
  • set up a test environment for AngularJS
  • install Node and Karma to test AngularJS applications

Controller Testing

  • test an AngularJS controller
  • unit test AngularJS controllers with dependencies

Testing Services and AJAX

  • test custom services in AngularJS
  • test custom services with dependencies in AngularJS
  • set up unit tests in AngularJS when AJAX calls are involved

Testing Filters

  • test an AngularJS custom filter
  • test an AngularJS custom filter with dependencies

Testing Directives

  • test simple directives in AngularJS
  • test custom directives with external templates in AngularJS
  • test directive bindings in AngularJS
  • test events on directives in AngularJS





Multi-license discounts available for Annual and Monthly subscriptions.