Karma

Products: IntelliJ IDEA, RubyMine, PhpStorm, PyCharm

Vendor: JetBrains

Source code: https://github.com/JetBr...ins/tree/master/js-karma

Bugtracker page

Integration with Karma, a spectacular test runner for JavaScript
Downloads: 133403
Rating:
Participated in rating: 4
Version Compatible builds Date
141.712 141.712 — 142 18.04.2015 Download
141.2 141.2 — 142 05.03.2015 Download
140.2633 140.2633 — 141 21.02.2015 Download
140.2109 140.2109 — 141 04.02.2015 Download
139.1233 139.1233 — 140 30.01.2015 Download
139.1025 139.1025 — 140 11.01.2015 Download
139.892 139.892 — 140 26.12.2014 Download
139.1 139.1 — 140 10.10.2014 Download
138.2196 138.2196 — 139 17.09.2014 Download
138.1879 138.1879 — 139 28.08.2014 Download
138.1684 138.1638 — 139 19.08.2014 Download
135.1027 135.484 — 136 06.06.2014 Download
138.317 138.255 — 139 26.05.2014 Download
137.34 137 — 138 29.04.2014 Download
138.21 138 — 139 29.04.2014 Download
135.480 135 — 136 03.04.2014 Download
136.1141 136 — 137 12.03.2014 Download
134.1347 134.1346 — 135 27.02.2014 Download
134.1341 134.1327 — 134.1342 27.02.2014 Download
134.1163 134.1160 — 135 18.02.2014 Download
134.1039 134.1015 — 135 10.02.2014 Download
134.686 134.670 — 135 14.01.2014 Download
133.434 133.286 — 134 27.12.2013 Download
133.287 133 — 134 13.12.2013 Download
131.562 131.346 — 132 11.12.2013 Download
134.31 134 — 135 18.11.2013 Download
132.1047 132.678 — 133 18.11.2013 Download
132.690 132 — 133 19.10.2013 Download
131.211 131.120 — 132 27.09.2013 Download
131.39 131 — 132 02.09.2013 Download
130.1640 130.1604 — 131 16.08.2013 Download
130.1461 130.1451 — 130.1451 31.07.2013 Download
130.1460 130.1434 — 131 30.07.2013 Download
130.1365 130.1365 — 131 29.07.2013 Download
130.1192 130.1167 — 131 12.07.2013 Download
16 updates are hidden show all updates

Comments:

123>
SergeySimonchik
2015-01-28 14:19:25
.
obr
2015-01-28 13:32:13
What should be done in order to enable browserify preprocessing with karma from within idea? Is this a planned feature?
.
markovuksanovic
2014-06-19 09:22:27
The latest version of plugin keeps crashing Dartium browser when a debug configuration is launched. It always gets me to "http://localhost:9876/debug.html" and I get the Aw Snap!. If I hit the url manually everything works fine (besides I can't use Webstorm to debug dart application)
.
SergeySimonchik
2014-06-10 15:27:45
Hi, thanks, reproduced. No, unfortunately, there is no way. See https://github.com/cjohansen/karma-browserifast/issues/23.
.
otbe
2014-06-07 17:29:39
Hi, is there any chance to use this plugin combined with browserify and automatic reload on code change? Until now, the tests are rerunned by Intellij but the code is not up2date, because there isnt a new invocation of browserify. I use karma-broswerifast for this (see github for an example config) and it works great on commandline :) (latest intellij idea and node/npm/karma)
.
SergeySimonchik
2014-02-14 17:56:38
Unfortunately, I cannot reproduce the issue. To find out the cause your idea.log is needed (on the main menu "Help | Show Log in...").

Could you please create an issue with attached log in our bugtracker?

.
jonnysamps
2014-02-14 03:52:06
I would love to use this plugin but I'm getting an error that I can't over come. I've trie d re-installing the plugin many times. PHPStorm 7.1.2 Build PS133.803 Plugin Version: 133.434 { [Error: Cannot find module './intellijCli'] code: 'MODULE_NOT_FOUND' } Error: Cannot find module './intellijCli' Any help?
.
ozanhazer
2014-02-10 13:46:21
Ah right, I was using wrong node package. It turns out that the karma is installed both locally and globally and global one was selected by default in the karma run config. Thanks!
.
SergeySimonchik
2014-02-10 13:32:27
Hi, please try to run karma tests outside the IDE (using the console). You should use the same karma package as specified in "Karma node package" field of Karma run configuration.

Will the problem with "ng-html2js" still persist? If yes, please file an issue in our bugtracker.

.
ozanhazer
2014-02-10 13:21:41
Hi Sergey I didn't see your message, sorry... Here's the update. After I've read your message I tried it again without any changes, simply clicked on "Run" and it worked for most of the tests! We've changed a lot in the config so I can't tell what was the problem... However there's another problem now, it says: WARN [preprocess]: Can not load "ng-html2js", it is not registered! Perhaps you are missing some plugin? What we have in the karma config file is: preprocessors: { '**/*.coffee': ['coffee'], '**/*.html': ['ng-html2js'] } and the module karma-ng-html2js-preprocessor is under the node_modules directory too... It doesn't complain about the coffeee preprocessor but we don't use it anyway so probably karma is not trying to load it at all...
.
SergeySimonchik
2014-01-29 15:33:39
Ozan, you're using https://github.com/karma-runner/karma-commonjs. Right?

Indeed, the plugin runs karma with working directory set to the config's directory. If you find a glitch here please file an issue in the bugtracker.


Actual working directory could be found by adding extra logging to /path/to/karma/lib/server.js: "console.log(process.cwd());"


If 'commonjsPreprocessor' is specified, then 'commonjsPreprocessor.modulesRoot' is resolved against the working directory (i.e. the config's directory). Otherwise, "karma.basePath/node_modules" is assumed (i.e. the working directory isn't involved in resolution).

.
ozanhazer
Rated:
2014-01-28 16:38:11
It cannot find the modules if the test directories is not at the root directory I think? Our directory structure ise like: /ui/test/* --> test related files /ui/node_modules/ --> we have the modules So it complains about being not able to find the modules. If I create a new project with "ui" as the root directory it works OK. In fact we're defining the base dir in the config file so I think the plugin should be run in that directory, or I don't know if we can specify the working directory by setting some environment variable or so...
.
SergeySimonchik
2014-01-23 13:17:31
I'm sorry, Michael, but there are no plans for releasing Karma plugin for IntelliJ IDEA 12. The problem is that Karma plugin relies on IntelliJ IDEA 13 API and other internal stuff (for example, it uses a new index that was introduced in IDEA 13).

Sorry again. The plugin's compatible with IntelliJ IDEA 13 or higher.


About upgrading to version 13: checkout additional options.

.
michael.kantor
2014-01-22 22:56:49
Is there a version that is compatible with IntelliJ IDEA Ultimate 12 (I have build 129.1359)? Upgrading to version 13 will cost money.
.
SergeySimonchik
2013-12-16 15:39:40
How do you perform "autoreload"?

Is "autoreload" the same thing as "auto test run"?


If yes, please use Alt+Shift+R to rerun tests. See also http://youtrack.jetbrains.com/issue/WEB-8136.


Feel free to file an issue in the WebStorm issue tracker. Thanks.

.
123>