O'Reilly logo

Continuous Integration, Delivery, and Deployment by Sander Rossel

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

Why Jasmine?

Now that we have seen some JavaScript unit tests in action, let us take a step back. Why would we use Jasmine and are there any alternatives? Jasmine works well with Karma, a test runner we will use later in this chapter. Karma was created by the Angular.js team, and thus Angular.js, Jasmine, and Karma are a pretty good match.

You do need to realize that Jasmine is not your only choice, but since we are working with Angular.js, it is a recommended choice. Other testing libraries include QUnit, used by the jQuery team, Unit.js, Intern, and Mocha. There are a pretty much a gazillion unit testing libraries out there though, but these ones are pretty popular choices.

I do not wish to confuse you, but you should be aware that some ...

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