karma
Spectacular Test Runner for JavaScript.
Last updated 12 years ago by vojtajina .
Repository · Bugs · Original npm · Tarball · package.json
$ npm install karma -g
SYNC missed versions from official npm registry.

Karma

js-standard-style npm version npm downloads

Code Climate PRs Welcome Dependency Status devDependency Status semantic-release

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

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

Karma is deprecated and is not accepting new features or general bug fixes.

The web testing space has evolved significantly in the 10+ years since Karma's creation. The web landscape looks very different today and new patterns and tools have emerged in the ecosystem. New test runners offer more performant alternatives, and Karma no longer provides clear unique value.

Based on the current state of the web testing ecosystem, we have made the hard decision to deprecate Karma.

We know Karma is used particularly commonly in the Angular ecosystem, so Angular is adding Jest and Web Test Runner support to provide a migration path off of Karma. See the Angular blog for more details.

Critical security issues in Karma will still be triaged and fixed as necessary. This will continue until 12 months after Angular CLI's Web Test Runner support is marked stable.

For those outside Angular looking to migrate off Karma, both Web Test Runner and jasmine-browser-runner provide browser-based unit testing solutions which can be used as a direct alternative. Jest and Vitest also provide Node-based alternatives.

It has been incredible to see Karma's impact on the web testing ecosystem and we greatly appreciate the support of everyone who contributed to an awesome community. Keep testing. ✅

Help and Support

For questions and support please use the mailing list or Gitter. The issue tracker is for bug reports and feature discussions only.

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 an 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.

Troubleshooting

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.

Installation.

See installation.

Using it.

See configuration.

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

Current Tags

  • 6.4.4                                ...           latest (4 months ago)

213 Versions

  • 6.4.4                                ...           4 months ago
  • 6.4.3                                ...           9 months ago
  • 6.4.2                                ...           2 years ago
  • 6.4.1                                ...           2 years ago
  • 6.4.0                                ...           2 years ago
  • 6.3.20                                ...           3 years ago
  • 6.3.19                                ...           3 years ago
  • 6.3.18                                ...           3 years ago
  • 6.3.17                                ...           3 years ago
  • 6.3.16                                ...           3 years ago
  • 6.3.15                                ...           3 years ago
  • 6.3.14                                ...           3 years ago
  • 6.3.13                                ...           3 years ago
  • 6.3.12                                ...           3 years ago
  • 6.3.11                                ...           3 years ago
  • 6.3.10                                ...           3 years ago
  • 6.3.9                                ...           3 years ago
  • 6.3.8                                ...           3 years ago
  • 6.3.7                                ...           3 years ago
  • 6.3.6                                ...           3 years ago
  • 6.3.5                                ...           3 years ago
  • 6.3.4                                ...           3 years ago
  • 6.3.3                                ...           3 years ago
  • 6.3.2                                ...           4 years ago
  • 6.3.1                                ...           4 years ago
  • 6.3.0                                ...           4 years ago
  • 6.2.0                                ...           4 years ago
  • 6.1.2                                ...           4 years ago
  • 6.1.1                                ...           4 years ago
  • 6.1.0                                ...           4 years ago
  • 6.0.4                                ...           4 years ago
  • 6.0.3                                ...           4 years ago
  • 6.0.2                                ...           4 years ago
  • 6.0.1                                ...           4 years ago
  • 6.0.0                                ...           4 years ago
  • 5.2.3                                ...           4 years ago
  • 5.2.2                                ...           4 years ago
  • 5.2.1                                ...           4 years ago
  • 5.2.0                                ...           4 years ago
  • 5.1.1                                ...           4 years ago
  • 5.1.0                                ...           4 years ago
  • 5.0.9                                ...           4 years ago
  • 5.0.8                                ...           4 years ago
  • 5.0.7                                ...           4 years ago
  • 5.0.6                                ...           4 years ago
  • 5.0.5                                ...           5 years ago
  • 5.0.4                                ...           5 years ago
  • 5.0.3                                ...           5 years ago
  • 5.0.2                                ...           5 years ago
  • 5.0.1                                ...           5 years ago
  • 5.0.0                                ...           5 years ago
  • 4.4.1                                ...           5 years ago
  • 4.4.0                                ...           5 years ago
  • 4.3.0                                ...           5 years ago
  • 4.2.0                                ...           5 years ago
  • 4.1.0                                ...           6 years ago
  • 4.0.1                                ...           6 years ago
  • 4.0.0                                ...           6 years ago
  • 3.1.4                                ...           6 years ago
  • 3.1.3                                ...           6 years ago
  • 3.1.2                                ...           6 years ago
  • 3.1.1                                ...           6 years ago
  • 3.1.0                                ...           6 years ago
  • 3.0.0                                ...           6 years ago
  • 2.0.5                                ...           6 years ago
  • 2.0.4                                ...           6 years ago
  • 2.0.3                                ...           6 years ago
  • 2.0.2                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
  • 1.7.1                                ...           7 years ago
  • 1.7.0                                ...           8 years ago
  • 1.6.0                                ...           8 years ago
  • 1.5.0                                ...           8 years ago
  • 1.4.1                                ...           8 years ago
  • 1.4.0                                ...           8 years ago
  • 1.3.0                                ...           8 years ago
  • 1.2.0                                ...           8 years ago
  • 1.1.2                                ...           8 years ago
  • 1.1.1                                ...           8 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
  • 0.13.22                                ...           9 years ago
  • 0.13.21                                ...           9 years ago
  • 0.13.20                                ...           9 years ago
  • 0.13.19                                ...           9 years ago
  • 0.13.18                                ...           9 years ago
  • 0.13.17                                ...           9 years ago
  • 0.13.16                                ...           9 years ago
  • 0.13.15                                ...           9 years ago
  • 0.13.14                                ...           9 years ago
  • 0.13.13                                ...           9 years ago
  • 0.13.12                                ...           9 years ago
  • 0.13.11                                ...           9 years ago
  • 0.13.10                                ...           9 years ago
  • 0.13.9                                ...           9 years ago
  • 0.13.8                                ...           9 years ago
  • 0.13.7                                ...           9 years ago
  • 0.13.6                                ...           9 years ago
  • 0.13.5                                ...           9 years ago
  • 0.13.4                                ...           9 years ago
  • 0.13.3                                ...           9 years ago
  • 0.13.2                                ...           9 years ago
  • 0.13.1                                ...           9 years ago
  • 0.13.0                                ...           9 years ago
  • 0.13.0-rc.9                                ...           9 years ago
  • 0.13.0-rc.8                                ...           9 years ago
  • 0.13.0-rc.7                                ...           9 years ago
  • 0.13.0-rc.6                                ...           9 years ago
  • 0.13.0-rc.5                                ...           9 years ago
  • 0.12.37                                ...           9 years ago
  • 0.13.0-rc.4                                ...           9 years ago
  • 0.12.36                                ...           9 years ago
  • 0.13.0-rc.3                                ...           9 years ago
  • 0.12.35                                ...           9 years ago
  • 0.13.0-rc.2                                ...           9 years ago
  • 0.12.34                                ...           9 years ago
  • 0.13.0-rc.1                                ...           9 years ago
  • 0.12.33                                ...           9 years ago
  • 0.13.0-rc.0                                ...           9 years ago
  • 0.12.32                                ...           10 years ago
  • 0.12.32-beta.0                                ...           10 years ago
  • 0.12.24-dev-socketio10-2                                ...           10 years ago
  • 0.12.24-dev-socketio10                                ...           10 years ago
  • 0.12.24-dev-test                                ...           10 years ago
  • 0.12.28-beta-f65c864                                ...           10 years ago
  • 0.12.31                                ...           10 years ago
  • 0.12.30                                ...           10 years ago
  • 0.12.29                                ...           10 years ago
  • 0.12.28-beta-b9be580                                ...           10 years ago
  • 0.12.28                                ...           10 years ago
  • 0.12.27                                ...           10 years ago
  • 0.12.26                                ...           10 years ago
  • 0.12.25-beta-ad5bc24                                ...           10 years ago
  • 0.12.25-beta-37a7958                                ...           10 years ago
  • 0.12.25                                ...           10 years ago
  • 0.12.24-beta-6cf7955                                ...           10 years ago
  • 0.12.24                                ...           10 years ago
  • 0.12.23                                ...           10 years ago
  • 0.12.22                                ...           10 years ago
  • 0.12.21                                ...           10 years ago
  • 0.12.20                                ...           10 years ago
  • 0.12.19                                ...           10 years ago
  • 0.12.18                                ...           10 years ago
  • 0.12.17                                ...           10 years ago
  • 0.12.16-beta-905422d                                ...           10 years ago
  • 0.12.16                                ...           11 years ago
  • 0.12.15                                ...           11 years ago
  • 0.12.14                                ...           11 years ago
  • 0.12.13                                ...           11 years ago
  • 0.12.11-beta-3029418                                ...           11 years ago
  • 0.12.12                                ...           11 years ago
  • 0.12.11                                ...           11 years ago
  • 0.12.10                                ...           11 years ago
  • 0.12.9                                ...           11 years ago
  • 0.12.8                                ...           11 years ago
  • 0.12.7                                ...           11 years ago
  • 0.12.6-beta-43e6e28                                ...           11 years ago
  • 0.12.6                                ...           11 years ago
  • 0.12.5                                ...           11 years ago
  • 0.12.4                                ...           11 years ago
  • 0.12.3                                ...           11 years ago
  • 0.12.2                                ...           11 years ago
  • 0.12.1                                ...           11 years ago
  • 0.10.10                                ...           11 years ago
  • 0.12.0                                ...           11 years ago
  • 0.11.14                                ...           11 years ago
  • 0.11.13                                ...           11 years ago
  • 0.11.12-dev2                                ...           11 years ago
  • 0.11.12-dev                                ...           11 years ago
  • 0.10.9                                ...           11 years ago
  • 0.11.11-dev                                ...           11 years ago
  • 0.11.12                                ...           11 years ago
  • 0.11.11                                ...           11 years ago
  • 0.11.10                                ...           11 years ago
  • 0.10.8                                ...           11 years ago
  • 0.11.9                                ...           11 years ago
  • 0.11.8                                ...           11 years ago
  • 0.11.7                                ...           11 years ago
  • 0.10.7                                ...           11 years ago
  • 0.11.6                                ...           11 years ago
  • 0.10.6                                ...           11 years ago
  • 0.11.5                                ...           11 years ago
  • 0.11.4                                ...           11 years ago
  • 0.10.5                                ...           11 years ago
  • 0.11.3                                ...           11 years ago
  • 0.11.2                                ...           11 years ago
  • 0.10.4                                ...           11 years ago
  • 0.10.3                                ...           11 years ago
  • 0.11.1                                ...           11 years ago
  • 0.11.0                                ...           11 years ago
  • 0.10.2                                ...           11 years ago
  • 0.10.1                                ...           11 years ago
  • 0.10.0                                ...           11 years ago
  • 0.9.8                                ...           11 years ago
  • 0.9.7                                ...           11 years ago
  • 0.8.8                                ...           11 years ago
  • 0.9.6                                ...           11 years ago
  • 0.9.5                                ...           11 years ago
  • 0.8.7                                ...           11 years ago
  • 0.9.4                                ...           11 years ago
  • 0.8.6                                ...           11 years ago
  • 0.9.3                                ...           11 years ago
  • 0.9.2-dart                                ...           12 years ago
  • 0.9.2                                ...           12 years ago
  • 0.8.5                                ...           12 years ago
  • 0.9.1                                ...           12 years ago
  • 0.8.4                                ...           12 years ago
  • 0.9.0                                ...           12 years ago
  • 0.8.3                                ...           12 years ago
  • 0.8.2                                ...           12 years ago
  • 0.8.1                                ...           12 years ago
  • 0.9.0-dart                                ...           12 years ago
  • 0.8.0                                ...           12 years ago
Maintainers (1)
Downloads
Total 19
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (15)
Dev Dependencies (25)

© 2010 - cnpmjs.org x YWFE | Home | YWFE