grunt-karma: grunt watch hangs on karma:unit:run task

Hi,

I have this issue every time I update a js file, for example a Ctrl. But runnig “grunt delta” and “karma start karma/karma-unit.js”, in two different console, it’s works well.

This the output after an hangs:

Running "clean:0" (clean) task
Cleaning "dist"...OK

Running "html2js:app" (html2js) task

Running "html2js:component" (html2js) task

Running "jshint:src" (jshint) task
>> 16 files lint free.

Running "jshint:test" (jshint) task
>> 4 files lint free.

Running "jshint:gruntfile" (jshint) task
>> 1 file lint free.

Running "jshint:globals" (jshint) task
>> 0 files lint free.

Running "karma:continuous" (karma) task
INFO [karma]: Karma server started at http://localhost:9018/
INFO [launcher]: Starting browser Firefox
INFO [Firefox 20.0 (Linux)]: Connected on socket id Znh0ouyJ14JFR2s9d17s
......
Firefox 20.0 (Linux): Executed 6 of 6 SUCCESS (0.434 secs / 0.039 secs)

Running "concat:dist" (concat) task
File "dist/assets/clean-power-circle.js" created.

Running "concat:libs" (concat) task
File "dist/assets/libs.js" created.

Running "ngmin:dist" (ngmin) task
ngminifying dist/assets/clean-power-circle.js

Running "uglify:dist" (uglify) task
File "dist/assets/clean-power-circle.min.js" created.

Running "recess:build" (recess) task
File "dist/assets/clean-power-circle.css" created.
Uncompressed size: 150906 bytes.
Compressed size: 17191 bytes gzipped (125053 bytes minified).

Running "index" task

Running "copy:assets" (copy) task
Created 3 directories, copied 8 files

Running "copy:bin" (copy) task
Created 1 directories, copied 1 files

Running "karma:unit" (karma) task

Running "delta" task
Waiting...OK
>> File "src/app/membership/membership.js" changed.
Running "jshint:src" (jshint) task
>> 16 files lint free.

Running "karma:unit:run" (karma) task

About this issue

  • Original URL
  • State: open
  • Created 11 years ago
  • Comments: 42 (8 by maintainers)

Most upvoted comments

Seems like this combo has no issues:

  "devDependencies": {
    "grunt": "^0.4.5",
    "grunt-contrib-watch": "^1.0.0",
    "jasmine-core": "^2.3.4",
    "karma-jasmine": "^0.3.6",
    "karma": "^0.13.15",
    "karma-phantomjs-launcher": "^0.2.1",
    "grunt-karma": "^0.12.1",
    "phantomjs": "^1.9.18"
  }