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

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

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