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

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

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