PhpStorm
 
Get PhpStorm
You are viewing the documentation for an earlier version of PhpStorm.

Karma

Last modified: 09 August 2022

Required plugins:

JavaScript and TypeScript -  The plugin is bundled with PhpStorm and enabled by default.

Karma -  Install the plugin on the Settings/Preferences | Plugins page, tab Marketplace.

Karma is a tool for testing client-side JavaScript. Karma executes tests against your application running in a real browser, which ensures correctness and trustworthiness of test results. PhpStorm integrates with Karma so you can run, debug, and monitor coverage of your tests from inside the IDE. You can see the test results in a treeview and easily navigate to the test source from there. Test status is shown next to the test in the editor with an option to quickly run it or debug it.