Running karma + jasmine, I'm unable to go the test source when clicking on a finished test

I'm running a suite of tests using karma + jasmine.
When I click on a test in the Test Run view, I don't get redirected to the corresponding source.
Tried to right click the test and choose "Jump to Source" and "Show Source" and none of them worked.
idea.log doesn't log anything relevant.
Here it's what I find there while running the tests:

2014-12-16 18:03:17,217 [2192545]   INFO - cript.karma.server.KarmaServer - Karma server 1639601695 started successfully: "C:\Program Files\nodejs\node.exe" "C:\Program Files (x86)\JetBrains\WebStorm 9.0\plugins\js-karma\js_reporter\karma-intellij\lib\intellijServer.js" "--karmaPackageDir=C:\Users\Ricardo Lucio\AppData\Roaming\npm\node_modules\karma" --configFile=C:\gitrepos\vault\WzlUI\src\test\js\karma.conf.js
2014-12-16 18:03:18,468 [2193796]   INFO - cript.karma.server.KarmaServer - Processing Karma event configFile {"autoWatch":true,"basePath":"C:\\gitrepos\\vault\\WzlUI\\src","browsers":["PhantomJS"],"hostname":"localhost","urlRoot":"/"}
2014-12-16 18:03:18,484 [2193812]   INFO - cript.karma.server.KarmaServer - Processing Karma event configFilePatterns ["C:/gitrepos/vault/WzlUI/src/main/webapp/JMVC/**/*.js","C:/gitrepos/vault/WzlUI/src/main/webapp/annotate/**/*.js","C:/gitrepos/vault/WzlUI/src/main/webapp/templates/**/*.hbs","C:/gitrepos/vault/WzlUI/src/main/webapp/templates/helpers/**/*.js","C:/gitrepos/vault/WzlUI/src/test/js/veeva_vault/annotate/mock/**/*.js","C:/gitrepos/vault/WzlUI/src/test/js/shims/**/*.js","C:/gitrepos/vault/WzlUI/src/test/js/utils/*.js","C:/gitrepos/vault/WzlUI/src/test/js/**/*TestU.js","C:/gitrepos/vault/WzlUI/src/main/webapp/images/veeva*.gif","C:/gitrepos/vault/WzlUI/src/test/js/test-main.js"]
2014-12-16 18:03:18,484 [2193812]   INFO - server.watch.KarmaWatchPattern - Start watching path pattern C:/gitrepos/vault/WzlUI/src/main/webapp/JMVC/**/*.js
2014-12-16 18:03:18,486 [2193814]   INFO - server.watch.KarmaWatchPattern - Watching C:/gitrepos/vault/WzlUI/src/main/webapp/JMVC
2014-12-16 18:03:18,486 [2193814]   INFO - server.watch.KarmaWatchPattern - Start watching path pattern C:/gitrepos/vault/WzlUI/src/main/webapp/annotate/**/*.js
2014-12-16 18:03:18,486 [2193814]   INFO - server.watch.KarmaWatchPattern - Watching C:/gitrepos/vault/WzlUI/src/main/webapp/annotate
2014-12-16 18:03:18,486 [2193814]   INFO - server.watch.KarmaWatchPattern - Start watching path pattern C:/gitrepos/vault/WzlUI/src/main/webapp/templates/**/*.hbs
2014-12-16 18:03:18,486 [2193814]   INFO - server.watch.KarmaWatchPattern - Watching C:/gitrepos/vault/WzlUI/src/main/webapp/templates
2014-12-16 18:03:18,486 [2193814]   INFO - server.watch.KarmaWatchPattern - Start watching path pattern C:/gitrepos/vault/WzlUI/src/main/webapp/templates/helpers/**/*.js
2014-12-16 18:03:18,487 [2193815]   INFO - server.watch.KarmaWatchPattern - Watching C:/gitrepos/vault/WzlUI/src/main/webapp/templates/helpers
2014-12-16 18:03:18,487 [2193815]   INFO - server.watch.KarmaWatchPattern - Start watching path pattern C:/gitrepos/vault/WzlUI/src/test/js/veeva_vault/annotate/mock/**/*.js
2014-12-16 18:03:18,487 [2193815]   INFO - server.watch.KarmaWatchPattern - Watching C:/gitrepos/vault/WzlUI/src/test/js/veeva_vault/annotate/mock
2014-12-16 18:03:18,487 [2193815]   INFO - server.watch.KarmaWatchPattern - Start watching path pattern C:/gitrepos/vault/WzlUI/src/test/js/shims/**/*.js
2014-12-16 18:03:18,487 [2193815]   INFO - server.watch.KarmaWatchPattern - Watching C:/gitrepos/vault/WzlUI/src/test/js/shims
2014-12-16 18:03:18,487 [2193815]   INFO - server.watch.KarmaWatchPattern - Start watching path pattern C:/gitrepos/vault/WzlUI/src/test/js/utils/*.js
2014-12-16 18:03:18,487 [2193815]   INFO - server.watch.KarmaWatchPattern - Watching C:/gitrepos/vault/WzlUI/src/test/js/utils
2014-12-16 18:03:18,487 [2193815]   INFO - server.watch.KarmaWatchPattern - Start watching path pattern C:/gitrepos/vault/WzlUI/src/test/js/**/*TestU.js
2014-12-16 18:03:18,488 [2193816]   INFO - server.watch.KarmaWatchPattern - Watching C:/gitrepos/vault/WzlUI/src/test/js
2014-12-16 18:03:18,488 [2193816]   INFO - server.watch.KarmaWatchPattern - Start watching path pattern C:/gitrepos/vault/WzlUI/src/main/webapp/images/veeva*.gif
2014-12-16 18:03:18,488 [2193816]   INFO - server.watch.KarmaWatchPattern - Watching C:/gitrepos/vault/WzlUI/src/main/webapp/images
2014-12-16 18:03:18,488 [2193816]   INFO - server.watch.KarmaWatchPattern - Start watching path pattern C:/gitrepos/vault/WzlUI/src/test/js/test-main.js
2014-12-16 18:03:18,488 [2193816]   INFO - server.watch.KarmaWatchPattern - Watching C:/gitrepos/vault/WzlUI/src/test/js/test-main.js
2014-12-16 18:03:22,252 [2197580]   INFO - cript.karma.server.KarmaServer - Processing Karma event browserConnected {"id":"18961203","name":"PhantomJS 1.9.7 (Windows 7)","isAutoCaptured":true}


Any idea what's going on?
2 comments
Comment actions Permalink

there might be different reasons for this problem:
- you are using  karma+require.js (youtrack.jetbrains.com/issue/WEB-14390)
- tests are generated by preprocessors (typescript, etc.) - youtrack.jetbrains.com/issue/WEB-13083
- specs/suites names include special characters - https://youtrack.jetbrains.com/issue/WEB-14510

If none of the mentioned issues look similar, please provide a sample project that shows up your issue

0
Comment actions Permalink

Looks like my case is the first one:
- you are using  karma+require.js (youtrack.jetbrains.com/issue/WEB-14390)

Thanks for response Elena!
I'll monitor the resolution to this defect.

Ricardo.

0

Please sign in to leave a comment.