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

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

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