{"id":13468687,"url":"https://github.com/karma-runner/karma","last_synced_at":"2025-05-12T16:11:22.714Z","repository":{"id":39614759,"uuid":"2560988","full_name":"karma-runner/karma","owner":"karma-runner","description":"Spectacular Test Runner for JavaScript","archived":false,"fork":false,"pushed_at":"2025-02-13T14:07:46.000Z","size":10489,"stargazers_count":11969,"open_issues_count":382,"forks_count":1716,"subscribers_count":313,"default_branch":"master","last_synced_at":"2025-05-03T06:58:16.250Z","etag":null,"topics":["bdd","browser","jasmine","javascript","karma","mocha","qunit","tdd","test-runner"],"latest_commit_sha":null,"homepage":"http://karma-runner.github.io","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karma-runner.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2011-10-12T07:55:46.000Z","updated_at":"2025-05-02T23:40:43.000Z","dependencies_parsed_at":"2023-02-14T17:00:48.779Z","dependency_job_id":"ad5b510d-8ffe-4867-916d-754cac2fd6e3","html_url":"https://github.com/karma-runner/karma","commit_stats":{"total_commits":2346,"total_committers":396,"mean_commits":5.924242424242424,"dds":0.6018755328218244,"last_synced_commit":"84f85e7016efc2266fa6b3465f494a3fa151c85c"},"previous_names":[],"tags_count":248,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karma-runner%2Fkarma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karma-runner%2Fkarma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karma-runner%2Fkarma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karma-runner%2Fkarma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karma-runner","download_url":"https://codeload.github.com/karma-runner/karma/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252330317,"owners_count":21730681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bdd","browser","jasmine","javascript","karma","mocha","qunit","tdd","test-runner"],"created_at":"2024-07-31T15:01:16.725Z","updated_at":"2025-05-04T11:36:14.640Z","avatar_url":"https://github.com/karma-runner.png","language":"JavaScript","readme":"# Karma\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/karma-runner/karma) [![npm version](https://img.shields.io/npm/v/karma.svg?style=flat-square)](https://www.npmjs.com/package/karma) [![npm downloads](https://img.shields.io/npm/dm/karma.svg?style=flat-square)](https://npmcharts.com/compare/karma?minimal=true)\n\n [![Code Climate](https://img.shields.io/codeclimate/maintainability/karma-runner/karma)](https://codeclimate.com/github/karma-runner/karma) [![PRs Welcome](https://img.shields.io/badge/prs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com/) [![Dependency Status](https://img.shields.io/david/karma-runner/karma.svg?style=flat-square)](https://david-dm.org/karma-runner/karma) [![devDependency Status](https://img.shields.io/david/dev/karma-runner/karma.svg?style=flat-square)](https://david-dm.org/karma-runner/karma#info=devDependencies) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\nA simple tool that allows you to execute JavaScript code in multiple\n_real_ browsers.\n\n\u003e The main purpose of Karma is to make your test-driven development easy,\n\u003e  fast, and fun.\n\n## Karma is deprecated and is not accepting new features or general bug fixes.\n\nThe web testing space has evolved significantly in the [10+ years](https://testing.googleblog.com/2012/11/testacular-spectacular-test-runner-for.html) since Karma's creation. The web landscape looks very different today and new patterns and tools have emerged in the ecosystem. New test runners offer more performant alternatives, and Karma no longer provides clear unique value.\n\nBased on the current state of the web testing ecosystem, we have made the hard decision to deprecate Karma.\n\nWe know Karma is used particularly commonly in the Angular ecosystem, so Angular is adding [Jest](https://jestjs.io/) and [Web Test Runner](https://modern-web.dev/docs/test-runner/overview/) support to provide a migration path off of Karma. See the [Angular blog](https://blog.angular.io/moving-angular-cli-to-jest-and-web-test-runner-ef85ef69ceca) for more details.\n\nCritical security issues in Karma will still be triaged and fixed as necessary. This will continue until 12 months after Angular CLI's Web Test Runner support is marked stable.\n\nFor those outside Angular looking to migrate off Karma, both [Web Test Runner](https://modern-web.dev/docs/test-runner/overview/) and [`jasmine-browser-runner`](https://github.com/jasmine/jasmine-browser-runner) provide browser-based unit testing solutions which can be used as a direct alternative. [Jest](https://jestjs.io/) and [Vitest](https://vitest.dev/) also provide Node-based alternatives.\n\nIt has been incredible to see Karma's impact on the web testing ecosystem and we greatly appreciate the support of everyone who contributed to an awesome community. Keep testing. ✅\n\n\n## Help and Support\n\n\u003e For questions and support please use the mailing list or Gitter.\n\u003e The issue tracker is for bug reports and feature discussions only.\n\n* Obligatory [documentation]\n* Quick questions:\n[![Gitter Chat](https://img.shields.io/badge/GITTER-join%20chat-green.svg?style=flat-square)](https://gitter.im/karma-runner/karma)\n* Longer questions: [Mailing List]\n* Bug reports [Issue Tracker]\n* Everything less than 140 characters: [@JsKarma] on Twitter\n\n\n\n## When should I use Karma?\n\n* You want to test code in *real* browsers.\n* You want to test code in multiple browsers (desktop, mobile,\n  tablets, etc.).\n* You want to execute your tests locally during development.\n* You want to execute your tests on a continuous integration server.\n* You want to execute your tests on every save.\n* You love your terminal.\n* You don't want your (testing) life to suck.\n* You want to use [Istanbul] to automagically generate coverage\n  reports.\n* You want to use [RequireJS] for your source files.\n\n\n## But I still want to use \\_insert testing library\\_\n\nKarma is not a testing framework, nor an assertion library.\nKarma just launches an HTTP server, and generates the test runner HTML file you probably already know from your favourite testing framework.\nSo for testing purposes you can use pretty much anything you like. There are already plugins for most of the common testing frameworks:\n\n* [Jasmine]\n* [Mocha]\n* [QUnit]\n* and [many others](https://www.npmjs.com/search?q=keywords:karma-adapter)\n\nIf you can't find an adapter for your favourite framework, don't worry and write your own.\nIt's not that hard and we are here to help.\n\n\n## Which Browsers can I use?\n\nAll the major browsers are supported, if you want to know more see the\n[browsers] page.\n\n\n## Troubleshooting\nSee [FAQ](https://karma-runner.github.io/latest/intro/faq.html).\n\n\n## I want to use it. Where do I sign?\n\nYou don't need to sign anything but here are some resources to help\nyou to get started...\n\n\n### Obligatory Screencast.\n\nEvery serious project has a screencast, so here is ours.  Just click\n[here] and let the show begin.\n\n\n### Installation.\n\nSee [installation](https://karma-runner.github.io/latest/intro/installation.html).\n\n\n### Using it.\n\nSee [configuration](https://karma-runner.github.io/latest/intro/configuration.html).\n\n\n## This is so great. I want to help.\n\nPlease, see\n[contributing](https://karma-runner.github.io/latest/dev/contributing.html).\n\n\n## Why did you create this?\n\nThroughout the development of [AngularJS], we've been using [JSTD] for\ntesting. I really think that JSTD is a great idea. Unfortunately, we\nhad many problems with JSTD, so we decided to write our own test\nrunner based on the same idea. We wanted a simple tool just for\nexecuting JavaScript tests that is both stable and fast. That's why we\nuse the awesome [Socket.io] library and [Node.js].\n\n\n## My boss wants a license. So where is it?\n[MIT License](./LICENSE)\n\n\n[AngularJS]: https://angularjs.org/\n[JSTD]: https://code.google.com/p/js-test-driver/\n[Socket.io]: https://socket.io/\n[Node.js]: https://nodejs.org/\n[Jasmine]: https://github.com/karma-runner/karma-jasmine\n[Mocha]: https://github.com/karma-runner/karma-mocha\n[QUnit]: https://github.com/karma-runner/karma-qunit\n[here]: https://www.youtube.com/watch?v=MVw8N3hTfCI\n[Mailing List]: https://groups.google.com/forum/#!forum/karma-users\n[Issue Tracker]: https://github.com/karma-runner/karma/issues\n[@JsKarma]: https://twitter.com/JsKarma\n[RequireJS]: https://requirejs.org/\n[Istanbul]: https://github.com/gotwarlost/istanbul\n\n[browsers]: https://karma-runner.github.io/latest/config/browsers.html\n[documentation]: https://karma-runner.github.io\n","funding_links":[],"categories":["JavaScript","{{ Test }}","javascript","JavaScript (71)","前端相关","目录","Testing Frameworks","Framework or Library","Testing Frameworks [🔝](#readme)","Back-End Development","Uncategorized","测试框架","Testing","Unit Testing"],"sub_categories":["测试/工具/Mock","Runner","Testing","Uncategorized","运行器","Browser-based Testing Tools","运行器e2e测试"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarma-runner%2Fkarma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarma-runner%2Fkarma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarma-runner%2Fkarma/lists"}