Download Now

Testing Angular Services

Tutsplus-Testing Angular Services
0.2 hrs | 1 Apr 2016 | Video: h264, yuv420p, 1280x720 | Audio: aac, 44100 Hz, 2 ch | 131MB
Genre: eLearning | Language: English

AngularJS, Front-End, Web Apps, Web Development, Single Page Web App, TDD, Test-Driven Development, BDD, Behaviour-Driven Development, Karma, Unit Testing

Unit testing is a key tool for ensuring the correctness of our software, and Angular apps are no exception! In fact, part of what makes Angular so amazing is that it's a framework written from the ground up with testing in mind. Angular services are easier to test than some other Angular components, such as controllers, but still different than unit testing regular javascript applications.

In this Coffee Break Course, Envato Tuts+ instructor Dan Wellman will show you how to take an existing Angular app and add tests for one of its custom services. We'll see how to inject the service and its dependencies for testing, and how to stub methods in those dependencies with Sinon.

This is part of a series of Coffee Break Courses on testing in Angular.


Direct Download

Tags: Testing, Angular, Services

Add Comments:
Enter Code: *