Skip to Main Content
AngularJS Web Application Development Blueprints
book

AngularJS Web Application Development Blueprints

by Vinci J Rufus
August 2014
Intermediate to advanced content levelIntermediate to advanced
300 pages
6h 9m
English
Packt Publishing
Content preview from AngularJS Web Application Development Blueprints

Writing automated tests

Our application is working fine, which is great; however, going forward, you would probably tinker with the code, refactor it, add some additional features, and so on. While doing so, it's important to make sure that we don't break anything.

Moreover, because our app makes use of a third-party API, which at times may go down or change, this will cause our app to fail.

In order to detect any breakages, it is vital that we have some kind of automated tests that can be run periodically or every time something changes in our code.

We will use Karma to run our Unit tests and Protractor for our End-to-End Testing.

Writing Unit tests with Karma

Karma is a test runner to run JavaScript Unit tests. We can use Jasmine, Mocha, or QUnit ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

AngularJS: Maintaining Web Applications

AngularJS: Maintaining Web Applications

Rodrigo Branas, Chandermani, Matt Frisbie, Amos Q. Haviv
AngularJS

AngularJS

Shyam Seshadri, Brad Green
Professional AngularJS

Professional AngularJS

Valeri Karpov, Diego Netto
Pro AngularJS

Pro AngularJS

Adam Freeman

Publisher Resources

ISBN: 9781783285617Supplemental Content