karma 0 travis-ci npm

Spectacular Test Runner for JavaScript

Karma Build Status Dependency Status devDependency Status

A simple tool that allows you to execute JavaScript code in multiple real browsers.

The main purpose of Karma is to make your TDD development easy, fast, and fun.

When should I use Karma?

  • You want to test code in real browsers.
  • You want to test code in multiple browsers (desktop, mobile, tablets, etc.).
  • You want to execute your tests locally during development.
  • You want to execute your tests on a continuous integration server.
  • You want to execute your tests on every save.
  • You love your terminal.
  • You don’t want your (testing) life to suck.
  • You want to use Istanbul to automagically generate coverage reports.
  • You want to use RequireJS for your source files.

But I still want to use _insert testing library_

Karma is not a testing framework, nor an assertion library. Karma just launches a HTTP server, and generates the test runner HTML file you probably already know from your favourite testing framework. So for testing purposes you can use pretty much anything you like. There are already plugins for most of the common testing frameworks:

If you can’t find an adapter for your favourite framework, don’t worry and write your own. It’s not that hard and we are here to help.

Which Browsers can I use?

All the major browsers are supported, if you want to know more see the browsers page.


See FAQ.

I want to use it. Where do I sign?

You don’t need to sign anything but here are some resources to help you to get started…

Obligatory Screencast.

Every serious project has a screencast, so here is ours. Just click here and let the show begin.


See installation.

Using it.

See configuration.

I still don’t get it. Where can I get help?

This is so great. I want to help.

Please, see contributing.

Why did you create this?

Throughout the development of AngularJS, we’ve been using JSTD for testing. I really think that JSTD is a great idea. Unfortunately, we had many problems with JSTD, so we decided to write our own test runner based on the same idea. We wanted a simple tool just for executing JavaScript tests that is both stable and fast. That’s why we use the awesome Socket.io library and Node.js.

My boss wants a license. So where is it?

MIT License

Related Repositories



A Karma plugin. Generate code coverage. ...



Grunt plugin for Karma. ...



Use webpack with karma. ...



A Karma plugin - adapter for Jasmine testing framework. ...



A fast Browserify integration for Karma that handles large projects with ease ...

Top Contributors

vojtajina dignifiedquire karmarunnerbot taichi maksimr bitwiseman deepak1556 timbertson shyamseshadri cironunes pkozlowski-opensource Iristyle sylvain-hamel kjbekkelund josh-bradley btford IgorMinar ilyavolodin aymericbeaumet jeffjewiss marcenuc pavelgj sublimino Aeyoun czchen hmalphettes avalanche123 psyked jpommerening gdi2290


-   v0.12.22 zip tar
-   v0.12.21 zip tar
-   v0.12.20 zip tar
-   v0.12.19 zip tar
-   v0.12.18 zip tar
-   v0.12.17 zip tar
-   v0.12.16 zip tar
-   v0.12.15 zip tar
-   v0.12.14 zip tar
-   v0.12.13 zip tar
-   v0.12.12 zip tar
-   v0.12.11 zip tar
-   v0.12.10 zip tar
-   v0.12.9 zip tar
-   v0.12.8 zip tar
-   v0.12.7 zip tar
-   v0.12.6 zip tar
-   v0.12.5 zip tar
-   v0.12.4 zip tar
-   v0.12.3 zip tar
-   v0.12.2 zip tar
-   v0.12.1 zip tar
-   v0.12.0 zip tar
-   v0.11.14 zip tar
-   v0.11.13 zip tar
-   v0.11.12 zip tar
-   v0.11.11 zip tar
-   v0.11.10 zip tar
-   v0.11.9 zip tar
-   v0.11.8 zip tar