Skip to content
Spectacular Test Runner for JavaScript
JavaScript Gherkin HTML CoffeeScript Shell TypeScript LiveScript
Branch: master
Clone or download

Latest commit

devoto13 ci: replace validate-commit-msg with commitlint on Travis (#3523)
Former is [deprecated](https://www.npmjs.com/package/validate-commit-msg) in favor of later. Karma already uses commitlint + husky to do commit validation locally. Added a dedicated package to simplify Travis integration as described in the commitlint [documentation](https://commitlint.js.org/#/guides-ci-setup).

As a bonus it provides a good error message when Travis fails because of the bad commit message ([example](https://travis-ci.org/github/karma-runner/karma/jobs/688059354#L92)).
Latest commit c22c297 May 20, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE Update issue templates Apr 9, 2020
bin feat: remove `karma` binary in favor of karma-cli Nov 16, 2013
client chore: update ESLint packages (#3517) May 19, 2020
common feat(deps): Remove core-js dependency. (#3379) Oct 16, 2019
context docs: Fix simple typo, overriden -> overridden (#3453) Apr 6, 2020
docs fix: detect type for URLs with query parameter or fragment identifier ( May 16, 2020
lib chore: update ESLint packages (#3517) May 19, 2020
logo chore: add logo Jan 6, 2014
scripts ci: replace validate-commit-msg with commitlint on Travis (#3523) May 20, 2020
static feat(config): add support for ES modules Oct 15, 2018
tasks ci: replace validate-commit-msg with commitlint on Travis (#3523) May 20, 2020
test chore: update ESLint packages (#3517) May 19, 2020
.codeclimate.yml chore: Add .codeclimate.yml Jun 23, 2015
.eslintignore refactor(test): adjust sandbox folder location and simplify config lo… May 1, 2020
.eslintrc.json chore(eslint): Add extension to .eslintrc file (#3232) Oct 23, 2019
.gitattributes chore: do not change pdf files line endings Jul 16, 2013
.gitignore refactor(test): adjust sandbox folder location and simplify config lo… May 1, 2020
.mailmap chore: update @mgol's name in .mailmap Oct 25, 2017
.npmignore Revert "refactor(server): move compile step to first run" Feb 23, 2018
.travis.yml ci: replace validate-commit-msg with commitlint on Travis (#3523) May 20, 2020
CHANGELOG.md chore(release): 5.0.9 [skip ci] May 19, 2020
CODE_OF_CONDUCT.md chore: Add code of conduct May 15, 2015
CONTRIBUTING.md docs: Updated supported Node versions in the documentation (#3155) Oct 2, 2018
ISSUE_TEMPLATE.md docs(gh): fix typos Aug 22, 2016
LICENSE chore(license): Update copyright notice to 2019 [ci skip] (#3250) Jan 18, 2019
README.md chore(docs): add semantic-release badge (#3522) May 19, 2020
appveyor.yml chore: add Node 14 to the build matrix (#3501) May 7, 2020
commitlint.config.js chore(lint): add commitlint, husky trigger, and config. (#3411) Jan 23, 2020
config.tpl.coffee refactor(formatters): refactor formatters.js May 5, 2018
config.tpl.js refactor(formatters): refactor formatters.js May 5, 2018
config.tpl.ls refactor(formatters): refactor formatters.js May 5, 2018
config.tpl.ts refactor(formatters): refactor formatters.js May 5, 2018
cucumber.js chore: update ESLint packages (#3517) May 19, 2020
gruntfile.js ci: replace validate-commit-msg with commitlint on Travis (#3523) May 20, 2020
package-lock.json ci: replace validate-commit-msg with commitlint on Travis (#3523) May 20, 2020
package.json ci: replace validate-commit-msg with commitlint on Travis (#3523) May 20, 2020
release.config.js chore(travis): activate semantic-release on node-12 test success (#3423) Feb 14, 2020
requirejs.config.tpl.coffee fix(init): Make the requirejs config template normalize paths Jun 18, 2015
requirejs.config.tpl.js refactor: Upgrade to eslint@2 Feb 18, 2016
thesis.pdf chore: add my thesis Jul 16, 2013
wallaby.js fix(deps): remove babel-core and babel call in wallaby. (#3044) Jun 20, 2018

README.md

Karma

js-standard-style npm version npm downloads

Build Status Build Status 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.

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

You can’t perform that action at this time.