Spectacular Test Runner for JavaScript (Evacuated from NSA/Microsoft Github)

johnjbarton bc9acd355a fix(lint): exempt built files (#3024) 5 years ago
bin c7d46270ac feat: remove `karma` binary in favor of karma-cli 10 years ago
client c9e1ca977c feat: better string representation of errors 6 years ago
common 65b658a8ba fix(common): stringify error on 'Cannot convert a Symbol value to a string' (#2990) 6 years ago
context 01d6d4c1db fix(client: return result of confirm and prompt 7 years ago
docs 6847ca04df fix(docs): Remove mention of pre 1.0.0 version (#3010) 6 years ago
lib 642b17752e refactor(server): update server.js to ES6 (#3027) 5 years ago
logo e7e4c3e455 chore: add logo 10 years ago
scripts 8c98439135 chore(ci): pass expected path to validate-commit-msg 6 years ago
static a36f3eb474 fix(debug-runner): support asynchronous tests in the debug runner 6 years ago
tasks 67a6054835 chore: Move to standard JS style. 9 years ago
test f5cda4d40d refactor: Update lib/launcher to ES6 (#3014) 5 years ago
.codeclimate.yml 5427a32d16 chore: Add .codeclimate.yml 8 years ago
.eslintignore bc9acd355a fix(lint): exempt built files (#3024) 5 years ago
.eslintrc 36b550f063 refactor: update eslint configuration (#3020) 5 years ago
.gitattributes 4fc43ea198 chore: do not change pdf files line endings 10 years ago
.gitignore 433855ad39 chore: relocate console.log test file into test/e2e and ignore it 7 years ago
.mailmap f32f9e1c0f chore: update @mgol's name in .mailmap 6 years ago
.npmignore bd013d2273 Revert "refactor(server): move compile step to first run" 6 years ago
.travis.yml 3add635f4e chore(travis): Add Node 10 to Travis 6 years ago
CHANGELOG.md dae189d4d4 chore: release v2.0.2 6 years ago
CODE_OF_CONDUCT.md 01729e67da chore: Add code of conduct 9 years ago
CONTRIBUTING.md c0b649fb96 docs(contributing): fix markdown syntax (broken link) 7 years ago
ISSUE_TEMPLATE.md 696123b257 docs(gh): fix typos 7 years ago
LICENSE 01b6400d68 chore(license): update year 7 years ago
README.md f18f7286db docs(readme): update downloads badge to point to graph of downloads 6 years ago
appveyor.yml 80cf39c4f2 chore(appveyor): Add Node 10 to appveyor 6 years ago
config.tpl.coffee 095fc7e04c refactor(formatters): refactor formatters.js 6 years ago
config.tpl.js 095fc7e04c refactor(formatters): refactor formatters.js 6 years ago
config.tpl.ls 095fc7e04c refactor(formatters): refactor formatters.js 6 years ago
config.tpl.ts 095fc7e04c refactor(formatters): refactor formatters.js 6 years ago
credentials 3989dc24e0 switch saucelabs credentials from voijta to karmarunnerbot 8 years ago
gruntfile.js a3ff6c8448 feat(grunt): run check_clean before starting release. (#2978) 6 years ago
package.json 36b550f063 refactor: update eslint configuration (#3020) 5 years ago
requirejs.config.tpl.coffee 54dcce31ea fix(init): Make the requirejs config template normalize paths 8 years ago
requirejs.config.tpl.js 64e301b34b refactor: Upgrade to eslint@2 8 years ago
thesis.pdf 9ea76264e9 chore: add my thesis 10 years ago
wallaby.js d3c132f741 chore: resetup wallabyjs for babel 7 years ago
yarn.lock a328150d68 chore(deps): update yarn.lock 6 years ago

README.md

Karma

js-standard-style npm version npm downloads

Build Status Build Status Code Climate PRs Welcome 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 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