talira

Run JavaScript tests in real browsers

open sourceMITfree

Karma's makers archived or ended it.

Its makers deprecated Karma; critical security issues are still fixed, and they recommend Web Test Runner, jasmine-browser-runner, Jest or Vitest instead.

Karma is a test runner that executes JavaScript tests in real browsers, desktop and mobile, locally during development, on every save or on a continuous integration server. It isn't a testing framework: it starts an HTTP server and generates the test runner page, with plugins for Jasmine, Mocha and other frameworks, browser launchers and Istanbul coverage reports. Its makers have deprecated it: it takes no new features or general bug fixes, and they point Angular users to Jest and Web Test Runner, and others to Web Test Runner, jasmine-browser-runner, Jest or Vitest.

Problems it solves

  • run my JavaScript unit tests in several real browsers at once
  • rerun browser tests every time I save a file
  • run my frontend tests on a CI server in real browsers

Features

  • runs tests in multiple real browsers
  • watches files and reruns tests on every save
  • plugins for Jasmine, Mocha and other test frameworks
  • browser launcher plugins for Chrome and Firefox
  • coverage reports with Istanbul

Limitations

  • Deprecated: no new features or general bug fixes, only critical security fixes1

Alternatives

The same job

These do what Karma does.

  1. Vitest Next generation testing framework powered by Vite
  2. Jest Delightful JavaScript Testing

Compare Karma with the top 3