O'Reilly logo

AngularJS in Action by Lukas Ruebbelke with Brian Ford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. Setting up Karma

Karma is a JavaScript test runner created by the AngularJS team. It’s important to note that it’s not a testing framework. It allows you to specify information about your testing environment, such as which browser(s) to use, which files to include, and so on. You then specify which testing framework you want to use (Jasmine, in our case) and write your tests using that particular framework.

Install Node.js and Node Package Manager (npm)

First things first. If you haven’t yet installed Node.js, stop! Here are a couple resources to get the ball rolling:

Install packages

If you do have Node.js and npm, welcome! First, install karma-cli globally ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required