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

Running tests with Karma

Karma, as mentioned, is a test runner (and it is spectacular, according to the Karma team). So a test runner really does what the name implies: it runs tests. So, instead of having to refresh your test page, Karma just runs them for you. Karma can be easily configured to run your tests on multiple browsers, such as IE (or some specific version), Edge, Firefox, Chrome, Safari, and Opera. After running your tests, Karma can generate reports on your tests and your code coverage. You can set minimum coverage thresholds and make your test runs fail when your code is not sufficiently covered. On top of that, Karma is a layer of abstraction. You can configure your test framework, such as Jasmine, and then switch to something ...

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