> For the complete documentation index, see [llms.txt](https://adroit.andycary.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://adroit.andycary.com/test/karma.md).

# Karma

Karma is a test runner or environment for running tests that can be used with testing frameworks like Mocha and Jasmine.

{% embed url="<https://karma-runner.github.io>" %}

* Karma
  * Browser-based testing
  * Spawns a web server and executes source code against test code
  * Configuration file (usually `karma.conf.js`) specifies which files to watch
  * Triggers tests whenever files change
  * Reports results back to the server
    * Can be published to Coveralls.io (<https://coveralls.io>)
  * Developed by the Angular team
  * Install (globally): `npm install -g karma-cli`
  * Install (in project): `npm install karma@latest –save-dev`
  * Initialize (in project): `karma init`
