16.07.2017 Views

AngularJS Essentials

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 7<br />

Every time the autoWatch or singleRun property is enabled, you can use Karma just<br />

by using the karma start command.<br />

Summary<br />

In this chapter, we studied how to automate tests using Jasmine and Karma, adding<br />

productivity and quality to our development process.<br />

You learned how to create tests for each kind of component such as controllers,<br />

directives, filters, and services. Also, you discovered how to mock the $http service<br />

through the $httpBackend service.<br />

In the next chapter, we discuss automating the workflow and creating a completely<br />

automated distribution with Grunt.<br />

[ 143 ]<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!