karma-runner / karma

Spectacular Test Runner for JavaScript
http://karma-runner.github.io
MIT License
11.96k stars 1.71k forks source link

"singleRun" option causing crash #1625

Closed reichert621 closed 9 years ago

reichert621 commented 9 years ago

In package.json, I have this script defined:

"karma": "node node_modules/karma/bin/karma start test/karma.conf.js --single-run"

This used to work fine. I recently upgraded to OSX El Capitan, and now when I run npm run karma I get:

> node node_modules/karma/bin/karma start test/karma.conf.js --single-run

13 10 2015 16:54:44.277:INFO [karma]: Karma v0.13.10 server started at http://localhost:9876/
13 10 2015 16:54:44.287:INFO [launcher]: Starting browser PhantomJS
13 10 2015 16:54:45.023:INFO [PhantomJS 1.9.8 (Mac OS X 0.0.0)]: Connected on socket x2lJEckmT4gGD6Y_AAAA with id 68710047

npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/Users/alexreichert/.node/bin/npm" "run" "karma"
npm ERR! node v4.0.0
npm ERR! npm  v3.3.6
npm ERR! code ELIFECYCLE
npm ERR! proteus@2.0.0 karma: `node node_modules/karma/bin/karma start test/karma.conf.js --single-run`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the proteus@2.0.0 karma script 'node node_modules/karma/bin/karma start test/karma.conf.js --single-run'.
npm ERR! This is most likely a problem with the proteus package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node node_modules/karma/bin/karma start test/karma.conf.js --single-run
npm ERR! You can get their info via:
npm ERR!     npm owner ls proteus
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/alexreichert/Desktop/haven/npm-debug.log

If I just run

node node_modules/karma/bin/karma start test/karma.conf.js --single-run

or if I remove singleRun: true from my karma.conf.js file, I get:

node node_modules/karma/bin/karma start test/karma.conf.js

13 10 2015 16:58:56.974:INFO [karma]: Karma v0.13.10 server started at http://localhost:9876/
13 10 2015 16:58:56.984:INFO [launcher]: Starting browser PhantomJS
13 10 2015 16:58:57.691:INFO [PhantomJS 1.9.8 (Mac OS X 0.0.0)]: Connected on socket rciGbdR8BH3Lxc-pAAAA with id 87704022

But I get no indication of whether tests passed or failed...

This was working fine yesterday, and I've been hacking at this for a few hours but I've had no luck :disappointed:

Here are my logs:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/Users/alexreichert/.node/bin/npm',
1 verbose cli   'run',
1 verbose cli   'karma' ]
2 info using npm@3.3.6
3 info using node@v4.0.0
4 verbose run-script [ 'prekarma', 'karma', 'postkarma' ]
5 info lifecycle proteus@2.0.0~prekarma: proteus@2.0.0
6 silly lifecycle proteus@2.0.0~prekarma: no script for prekarma, continuing
7 info lifecycle proteus@2.0.0~karma: proteus@2.0.0
8 verbose lifecycle proteus@2.0.0~karma: unsafe-perm in lifecycle true
9 verbose lifecycle proteus@2.0.0~karma: PATH: /Users/alexreichert/.node/lib/node_modules/npm/bin/node-gyp-bin:/Users/alexreichert/Desktop/haven/node_modules/.bin:/Users/alexreichert/.rvm/gems/ruby-2.1.5/bin:/Users/alexreichert/.rvm/gems/ruby-2.1.5@global/bin:/Users/alexreichert/.rvm/rubies/ruby-2.1.5/bin:/Users/alexreichert/.node/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Users/alexreichert/.rvm/bin
10 verbose lifecycle proteus@2.0.0~karma: CWD: /Users/alexreichert/Desktop/haven
11 silly lifecycle proteus@2.0.0~karma: Args: [ '-c',
11 silly lifecycle   'node node_modules/karma/bin/karma start test/karma.conf.js --single-run' ]
12 silly lifecycle proteus@2.0.0~karma: Returned: code: 1  signal: null
13 info lifecycle proteus@2.0.0~karma: Failed to exec karma script
14 verbose stack Error: proteus@2.0.0 karma: `node node_modules/karma/bin/karma start test/karma.conf.js --single-run`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/Users/alexreichert/.node/lib/node_modules/npm/lib/utils/lifecycle.js:233:16)
14 verbose stack     at emitTwo (events.js:87:13)
14 verbose stack     at EventEmitter.emit (events.js:172:7)
14 verbose stack     at ChildProcess.<anonymous> (/Users/alexreichert/.node/lib/node_modules/npm/lib/utils/spawn.js:24:14)
14 verbose stack     at emitTwo (events.js:87:13)
14 verbose stack     at ChildProcess.emit (events.js:172:7)
14 verbose stack     at maybeClose (internal/child_process.js:817:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
15 verbose pkgid proteus@2.0.0
16 verbose cwd /Users/alexreichert/Desktop/haven
17 error Darwin 14.5.0
18 error argv "/usr/local/bin/node" "/Users/alexreichert/.node/bin/npm" "run" "karma"
19 error node v4.0.0
20 error npm  v3.3.6
21 error code ELIFECYCLE
22 error proteus@2.0.0 karma: `node node_modules/karma/bin/karma start test/karma.conf.js --single-run`
22 error Exit status 1
23 error Failed at the proteus@2.0.0 karma script 'node node_modules/karma/bin/karma start test/karma.conf.js --single-run'.
23 error This is most likely a problem with the proteus package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     node node_modules/karma/bin/karma start test/karma.conf.js --single-run
23 error You can get their info via:
23 error     npm owner ls proteus
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

Help would be greatly appreciated.

maksimr commented 9 years ago

@reichert621 try remove and reinstall node_modules

reichert621 commented 9 years ago

@maksimr I've tried that :disappointed: I've also tried using different versions of node and npm, and doing npm cache clean, but still no luck...

maksimr commented 9 years ago

@reichert621 could you create gist which reproduce this problem , also you could run karma with debug info:

node node_modules/karma/bin/karma start karma.conf.js --single-run --log-level=DEBUG

Thanks

reichert621 commented 9 years ago

With debug info:

node node_modules/karma/bin/karma start test/karma.conf.js --single-run --log-level=DEBUG

13 10 2015 18:10:48.634:DEBUG [plugin]: Loading karma-* from /Users/alexreichert/Desktop/haven/node_modules
13 10 2015 18:10:48.638:DEBUG [plugin]: Loading plugin /Users/alexreichert/Desktop/haven/node_modules/karma-chrome-launcher.
13 10 2015 18:10:48.642:DEBUG [plugin]: Loading plugin /Users/alexreichert/Desktop/haven/node_modules/karma-firefox-launcher.
13 10 2015 18:10:48.642:DEBUG [plugin]: Loading plugin /Users/alexreichert/Desktop/haven/node_modules/karma-jasmine.
13 10 2015 18:10:48.643:DEBUG [plugin]: Loading plugin /Users/alexreichert/Desktop/haven/node_modules/karma-junit-reporter.
13 10 2015 18:10:48.670:DEBUG [plugin]: Loading plugin /Users/alexreichert/Desktop/haven/node_modules/karma-nyan-reporter.
13 10 2015 18:10:48.680:DEBUG [plugin]: Loading plugin /Users/alexreichert/Desktop/haven/node_modules/karma-phantomjs-launcher.
13 10 2015 18:10:48.682:DEBUG [plugin]: Loading plugin /Users/alexreichert/Desktop/haven/node_modules/karma-quiet-reporter.

13 10 2015 18:10:48.768:INFO [karma]: Karma v0.13.10 server started at http://localhost:9876/
13 10 2015 18:10:48.775:INFO [launcher]: Starting browser PhantomJS
13 10 2015 18:10:48.776:DEBUG [temp-dir]: Creating temp dir at /var/folders/1d/_pj9ny9538s2d5v2x06fw3xw0000gn/T/karma-13490433
13 10 2015 18:10:48.778:DEBUG [launcher]: /Users/alexreichert/Desktop/haven/node_modules/phantomjs/lib/phantom/bin/phantomjs /var/folders/1d/_pj9ny9538s2d5v2x06fw3xw0000gn/T/karma-13490433/capture.js
13 10 2015 18:10:49.448:DEBUG [web-server]: serving: /Users/alexreichert/Desktop/haven/node_modules/karma/static/client.html
13 10 2015 18:10:49.456:DEBUG [web-server]: serving: /Users/alexreichert/Desktop/haven/node_modules/karma/static/karma.js
13 10 2015 18:10:49.478:DEBUG [karma]: A browser has connected on socket gDnj4CbabgU-9jVoAAAA
13 10 2015 18:10:49.480:DEBUG [web-server]: upgrade /socket.io/?EIO=3&transport=websocket&sid=gDnj4CbabgU-9jVoAAAA
13 10 2015 18:10:49.496:INFO [PhantomJS 1.9.8 (Mac OS X 0.0.0)]: Connected on socket gDnj4CbabgU-9jVoAAAA with id 13490433
13 10 2015 18:10:49.496:DEBUG [launcher]: PhantomJS (id 13490433) captured in 0.727 secs
13 10 2015 18:10:49.505:DEBUG [web-server]: serving: /Users/alexreichert/Desktop/haven/node_modules/karma/static/context.html
13 10 2015 18:10:49.508:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/node_modules/jasmine-core/lib/jasmine-core/jasmine.js?578a1e5ff14db21b04e2d6db7fd0eda37042440c /
13 10 2015 18:10:49.508:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/node_modules/jasmine-core/lib/jasmine-core/jasmine.js
13 10 2015 18:10:49.509:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/node_modules/jasmine-core/lib/jasmine-core/jasmine.js
13 10 2015 18:10:49.509:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/node_modules/karma-jasmine/lib/boot.js?4a7da64f416169520c9d5c43b5a7feac6bde9104 /
13 10 2015 18:10:49.509:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/node_modules/karma-jasmine/lib/boot.js
13 10 2015 18:10:49.510:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/node_modules/karma-jasmine/lib/boot.js
13 10 2015 18:10:49.510:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/bower/angular-mocks/angular-mocks.js?6fe041cc8bb7a17f894cb12d8b0d44b12644f10a /
13 10 2015 18:10:49.518:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/bower/angular-mocks/angular-mocks.js
13 10 2015 18:10:49.518:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/node_modules/karma-jasmine/lib/adapter.js?3030709c83121e1b2ca4d1e657306b834fc13350 /
13 10 2015 18:10:49.518:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/node_modules/karma-jasmine/lib/adapter.js
13 10 2015 18:10:49.518:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/bower/angular/angular.js?9d140432f81858ac1e7888708720d419d147ffa9 /
13 10 2015 18:10:49.519:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/bower/angular/angular.js
13 10 2015 18:10:49.519:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/bower/angular-bootstrap/ui-bootstrap.js?b3712d5f6d142dcf79ba0b4e790a82f64b6ccbdb /
13 10 2015 18:10:49.519:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/bower/angular-bootstrap/ui-bootstrap.js
13 10 2015 18:10:49.519:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/bower/angular-cookies/angular-cookies.js?080dd633cb1cca65f29563030cf160f3764ead4a /
13 10 2015 18:10:49.519:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/bower/angular-cookies/angular-cookies.js
13 10 2015 18:10:49.520:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/bower/angular-mocks/angular-mocks.js
13 10 2015 18:10:49.520:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/node_modules/karma-jasmine/lib/adapter.js
13 10 2015 18:10:49.520:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/bower/angular/angular.js
13 10 2015 18:10:49.526:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/bower/angular-bootstrap/ui-bootstrap.js
13 10 2015 18:10:49.527:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/bower/angular-cookies/angular-cookies.js
13 10 2015 18:10:49.528:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/bower/angular-route/angular-route.js?c7c0eb5951a500311ad0ef90bc9f7a23c265599f /
13 10 2015 18:10:49.528:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/bower/angular-route/angular-route.js
13 10 2015 18:10:49.528:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/bower/angular-touch/angular-touch.js?02641a6bee562277d2c99345dd7282e88ebc30c9 /
13 10 2015 18:10:49.528:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/bower/angular-touch/angular-touch.js
13 10 2015 18:10:49.529:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/bower/angular-sanitize/angular-sanitize.js?677286c6bb7e0007b4c8441e8d7aea914b529d29 /
13 10 2015 18:10:49.529:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/bower/angular-sanitize/angular-sanitize.js
13 10 2015 18:10:49.529:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/bower/angular-resource/angular-resource.js?db4825ada17497ffdead7014442cca90b68223ed /
13 10 2015 18:10:49.529:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/bower/angular-resource/angular-resource.js
13 10 2015 18:10:49.529:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/bower/angular-route/angular-route.js
13 10 2015 18:10:49.530:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/bower/angular-touch/angular-touch.js
13 10 2015 18:10:49.530:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/bower/angular-sanitize/angular-sanitize.js
13 10 2015 18:10:49.531:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/bower/angular-resource/angular-resource.js
13 10 2015 18:10:49.531:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/bower/ng-file-upload/ng-file-upload-all.js?2aa5bae1b64d8e30e2985317e49407843ba0c9ef /
13 10 2015 18:10:49.531:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/bower/ng-file-upload/ng-file-upload-all.js
13 10 2015 18:10:49.532:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/bower/jquery/dist/jquery.js?96c73f3774471cc8378c77a64ecf09b7f625d8b7 /
13 10 2015 18:10:49.532:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/bower/jquery/dist/jquery.js
13 10 2015 18:10:49.532:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/bower/html5shiv/dist/html5shiv.js?377301809c44223882042091c449529b2cafbbc3 /
13 10 2015 18:10:49.532:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/bower/html5shiv/dist/html5shiv.js
13 10 2015 18:10:49.536:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/bower/lodash/dist/lodash.compat.js?55e887aba3d811b1d142b430a73c550deef9b295 /
13 10 2015 18:10:49.536:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/bower/lodash/dist/lodash.compat.js
13 10 2015 18:10:49.536:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/bower/angular-ui-select/dist/select.js?48911a96d7003e298bef089c479a3dbeeed3153a /
13 10 2015 18:10:49.536:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/bower/angular-ui-select/dist/select.js
13 10 2015 18:10:49.536:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/bower/angular-ui-router/release/angular-ui-router.js?704291836f2bfd3f71fd3822fca242f4706bc05f /
13 10 2015 18:10:49.537:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/bower/angular-ui-router/release/angular-ui-router.js
13 10 2015 18:10:49.552:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/bower/ng-file-upload/ng-file-upload-all.js
13 10 2015 18:10:49.553:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/bower/jquery/dist/jquery.js
13 10 2015 18:10:49.554:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/bower/html5shiv/dist/html5shiv.js
13 10 2015 18:10:49.554:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/bower/lodash/dist/lodash.compat.js
13 10 2015 18:10:49.555:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/bower/angular-ui-select/dist/select.js
13 10 2015 18:10:49.555:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/bower/angular-ui-router/release/angular-ui-router.js
13 10 2015 18:10:49.556:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/bower/momentjs/moment.js?39b02bfb7102bdad0e9879866c183a47decb3236 /
13 10 2015 18:10:49.568:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/bower/momentjs/moment.js
13 10 2015 18:10:49.568:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/bower/bootstrap/dist/js/bootstrap.js?bbf55e20f1ebb6368522799f29db39830a08ef93 /
13 10 2015 18:10:49.568:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/bower/bootstrap/dist/js/bootstrap.js
13 10 2015 18:10:49.568:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/bower/highcharts-ng/dist/highcharts-ng.js?ff297304799b19e2d338980107ef9a4ab347e6d7 /
13 10 2015 18:10:49.568:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/bower/highcharts-ng/dist/highcharts-ng.js
13 10 2015 18:10:49.568:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/bower/angular-shims-placeholder/dist/angular-shims-placeholder.js?44cd2291e70dc89c74f24d7d357f26a581583bc6 /
13 10 2015 18:10:49.569:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/bower/angular-shims-placeholder/dist/angular-shims-placeholder.js
13 10 2015 18:10:49.569:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/lib/TemplateCache.js?4f7c7891fcf8301a18465ff3f06b38effd8bdd69 /
13 10 2015 18:10:49.569:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/lib/TemplateCache.js
13 10 2015 18:10:49.570:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/bower/momentjs/moment.js
13 10 2015 18:10:49.570:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/bower/bootstrap/dist/js/bootstrap.js
13 10 2015 18:10:49.570:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/bower/highcharts-ng/dist/highcharts-ng.js
13 10 2015 18:10:49.571:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/bower/angular-shims-placeholder/dist/angular-shims-placeholder.js
13 10 2015 18:10:49.571:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/lib/TemplateCache.js
13 10 2015 18:10:49.572:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/config.js?b42e42b3ca441d62b5abab41888694fa8adccb64 /
13 10 2015 18:10:49.572:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/config.js
13 10 2015 18:10:49.572:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/services/AuthSvc.js?623156a451f6cf915d83a8113715f61fa3dd2f8c /
13 10 2015 18:10:49.572:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/services/AuthSvc.js
13 10 2015 18:10:49.572:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/services/ChartSvc.js?ebcd560de2dcb8f83eeae663a4f18311ede0d8e9 /
13 10 2015 18:10:49.572:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/services/ChartSvc.js
13 10 2015 18:10:49.572:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/services/CsvParserSvc.js?09fa46baeb10d29df2d9bf2f6a6edbfc1a0b2591 /
13 10 2015 18:10:49.573:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/services/CsvParserSvc.js
13 10 2015 18:10:49.573:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/services/DataSvc.js?a6745fc304d22af2aa9e4154fcb56244f908ac58 /
13 10 2015 18:10:49.573:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/services/DataSvc.js
13 10 2015 18:10:49.573:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/app.js?d061fe6cff4155d6a6fa18456e84b02df6d9f20b /
13 10 2015 18:10:49.573:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/app.js
13 10 2015 18:10:49.574:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/config.js
13 10 2015 18:10:49.575:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/services/AuthSvc.js
13 10 2015 18:10:49.575:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/services/ChartSvc.js
13 10 2015 18:10:49.576:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/services/CsvParserSvc.js
13 10 2015 18:10:49.576:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/services/DataSvc.js
13 10 2015 18:10:49.576:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/app.js
13 10 2015 18:10:49.576:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/services/ErrorSvc.js?9324b308dea5af3807a2c5925830d9b73b8c0386 /
13 10 2015 18:10:49.576:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/services/ErrorSvc.js
13 10 2015 18:10:49.577:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/services/IntercomSvc.js?2124e3f6f87a4b7816c4d8ffd9d443e8c10772f5 /
13 10 2015 18:10:49.577:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/services/IntercomSvc.js
13 10 2015 18:10:49.577:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/services/LoggerSvc.js?14cbc14ae885b3a0afd79c08fcb9275de83dc533 /
13 10 2015 18:10:49.577:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/services/LoggerSvc.js
13 10 2015 18:10:49.578:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/services/ModelSvc.js?0defad51f56f1a7efee764f940f5b33d01ae62a0 /
13 10 2015 18:10:49.578:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/services/ModelSvc.js
13 10 2015 18:10:49.578:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/services/OrderSvc.js?cdf9cf0cb0ebbb175ca8f3038b608af0bae29744 /
13 10 2015 18:10:49.578:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/services/OrderSvc.js
13 10 2015 18:10:49.578:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/services/ErrorSvc.js
13 10 2015 18:10:49.578:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/services/IntercomSvc.js
13 10 2015 18:10:49.578:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/services/LoggerSvc.js
13 10 2015 18:10:49.579:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/services/ModelSvc.js
13 10 2015 18:10:49.587:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/services/OrderSvc.js
13 10 2015 18:10:49.587:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/services/SailingSearchSvc.js?5dc3a75532f9c83ce89b0934cedef451ecfc2e4f /
13 10 2015 18:10:49.587:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/services/SailingSearchSvc.js
13 10 2015 18:10:49.588:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/services/StorageSvc.js?8f4a9e649af3fc56f26792ac76ec610c249414f4 /
13 10 2015 18:10:49.588:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/services/StorageSvc.js
13 10 2015 18:10:49.588:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/services/ValidationSvc.js?8519868e126318c5e4bc814b0bcbe8301f5acef4 /
13 10 2015 18:10:49.588:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/services/ValidationSvc.js
13 10 2015 18:10:49.603:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/constants/roleMap.js?61de2aa6476ee5f7dfa3bf8be40066781983c545 /
13 10 2015 18:10:49.603:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/constants/roleMap.js
13 10 2015 18:10:49.604:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/services/QuoteGroupingSvc.js?1c089065ddd80a90de89d76ee2d745d18d118098 /
13 10 2015 18:10:49.604:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/services/QuoteGroupingSvc.js
13 10 2015 18:10:49.604:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/services/SailingSearchSvc.js
13 10 2015 18:10:49.604:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/services/StorageSvc.js
13 10 2015 18:10:49.604:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/services/ValidationSvc.js
13 10 2015 18:10:49.607:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/constants/roleMap.js
13 10 2015 18:10:49.609:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/services/QuoteGroupingSvc.js
13 10 2015 18:10:49.610:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/directives/CarrierLogo.js?647b39bb47db49f6aae7c080ae5ff21f995f1512 /
13 10 2015 18:10:49.610:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/directives/CarrierLogo.js
13 10 2015 18:10:49.611:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/directives/ContactInfo.js?177cc418da6a0bb0a5752989e38ff16fafa4d7e3 /
13 10 2015 18:10:49.611:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/directives/ContactInfo.js
13 10 2015 18:10:49.611:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/directives/ContainerDetails.js?e4a34db1d1507bb734b26b3547216e00118dbb28 /
13 10 2015 18:10:49.618:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/directives/ContainerDetails.js
13 10 2015 18:10:49.618:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/directives/CsvFileReader.js?67fbe8c3ef00d7a2756b7092355406d5ef295a03 /
13 10 2015 18:10:49.618:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/directives/CsvFileReader.js
13 10 2015 18:10:49.618:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/directives/DateFormat.js?cc3a6a7edcde8dd6036da11be8b02bef2a46c24f /
13 10 2015 18:10:49.618:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/directives/DateFormat.js
13 10 2015 18:10:49.619:DEBUG [middlware:source-files]: Requesting /absolute/Users/alexreichert/Desktop/haven/client/js/constants/s3.js?3c61730020e9630f66262fbd8b04fe07cce40c95 /
13 10 2015 18:10:49.619:DEBUG [middlware:source-files]: Fetching /Users/alexreichert/Desktop/haven/client/js/constants/s3.js
13 10 2015 18:10:49.622:DEBUG [karma]: Run complete, exiting.
13 10 2015 18:10:49.622:DEBUG [launcher]: Disconnecting all browsers
13 10 2015 18:10:49.623:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/directives/CarrierLogo.js
13 10 2015 18:10:49.623:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/directives/ContactInfo.js
13 10 2015 18:10:49.623:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/directives/ContainerDetails.js
13 10 2015 18:10:49.623:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/directives/CsvFileReader.js
13 10 2015 18:10:49.624:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/directives/DateFormat.js
13 10 2015 18:10:49.624:DEBUG [web-server]: serving (cached): /Users/alexreichert/Desktop/haven/client/js/constants/s3.js
13 10 2015 18:10:49.629:DEBUG [launcher]: Process PhantomJS exited with code 0
13 10 2015 18:10:49.629:DEBUG [temp-dir]: Cleaning temp dir /var/folders/1d/_pj9ny9538s2d5v2x06fw3xw0000gn/T/karma-13490433

npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/Users/alexreichert/.node/bin/npm" "run" "karma"
npm ERR! node v4.0.0
npm ERR! npm  v3.3.6
npm ERR! code ELIFECYCLE
npm ERR! proteus@2.0.0 karma: `node node_modules/karma/bin/karma start test/karma.conf.js --single-run --log-level=DEBUG`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the proteus@2.0.0 karma script 'node node_modules/karma/bin/karma start test/karma.conf.js --single-run --log-level=DEBUG'.
npm ERR! This is most likely a problem with the proteus package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node node_modules/karma/bin/karma start test/karma.conf.js --single-run --log-level=DEBUG
npm ERR! You can get their info via:
npm ERR!     npm owner ls proteus
npm ERR! There is likely additional logging output above.

Looking at the logs it seems like everything is executing fine, so I'm really confused

reichert621 commented 9 years ago

And here's my karma.conf.js file:

// Karma configuration
// Generated on Mon Feb 02 2015 16:02:11 GMT-0800 (PST)

module.exports = function(config) {
  config.set({

    // base path that will be used to resolve all patterns (eg. files, exclude)
    basePath: './',

    // frameworks to use
    // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
    frameworks: ['jasmine'],

    // list of files / patterns to load in the browser
    files: [
      '../client/bower/angular/angular.js',
      '../client/bower/angular-bootstrap/ui-bootstrap.js',
      '../client/bower/angular-cookies/angular-cookies.js',
      '../client/bower/angular-mocks/angular-mocks.js',
      '../client/bower/angular-resource/angular-resource.js',
      '../client/bower/angular-route/angular-route.js',
      '../client/bower/angular-touch/angular-touch.js',
      '../client/bower/angular-sanitize/angular-sanitize.js',
      '../client/bower/angular-ui-select/dist/select.js',
      '../client/bower/angular-ui-router/release/angular-ui-router.js',
      '../client/bower/ng-file-upload/ng-file-upload-all.js',
      '../client/bower/jquery/dist/jquery.js',
      '../client/bower/html5shiv/dist/html5shiv.js',
      '../client/bower/lodash/dist/lodash.compat.js',
      '../client/bower/momentjs/moment.js',
      '../client/bower/bootstrap/dist/js/bootstrap.js',
      '../client/bower/highcharts-ng/dist/highcharts-ng.js',
      '../client/bower/angular-shims-placeholder/dist/angular-shims-placeholder.js',
      '../client/js/lib/*.js',
      '../client/js/app.js',
      '../client/js/config.js',
      '../client/js/services/*.js',
      '../client/js/constants/*.js',
      '../client/js/directives/*.js',
      '../client/js/controllers/*.js',
      '../client/js/controllers/admin/*.js',
      'unit/mock/stateMock.js',
      'unit/exports/testData.js',
      'unit/*.spec.js',
      'unit/**/*.spec.js'
    ],

    // list of files to exclude
    exclude: [
    ],

    // preprocess matching files before serving them to the browser
    // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
    preprocessors: {
    },

    // test results reporter to use
    // possible values: 'dots', 'progress'
    // available reporters: https://npmjs.org/browse/keyword/karma-reporter
    reporters: ['nyan'],

    // web server port
    port: 9876,

    // enable / disable colors in the output (reporters and logs)
    colors: true,

    // level of logging
    // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
    logLevel: config.LOG_INFO,

    // enable / disable watching file and executing tests whenever any file changes
    autoWatch: false,

    // start these browsers
    // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
    browsers: ['PhantomJS'],

    junitReporter : {
      outputFile: 'test_out/unit.xml',
      suite: 'unit'
    },

    // Continuous Integration mode
    // if true, Karma captures browsers, runs the tests and exits
    singleRun: true
  });
};
reichert621 commented 9 years ago

resolved. duplicate method caused by merge conflict lead to this cryptic error message.

maksimr commented 9 years ago

@reichert621 nice! But I don't understand why karma was crashed ...

reichert621 commented 8 years ago

@maksimr once I upgraded a few of the karma plugins I'm using, I got a more helpful error message that led me to the issue :+1:

ibaraness commented 6 years ago

Hi Guys. I don't know if it will solve your problem, but I came up with similar problem while running 'karma --single-run --browsers Chrome' from npm script. I would get an unclear npm error:

Chrome 61.0.3163 (Windows 10 0.0.0): Executed 0 of 0 ERROR (0.007 secs / 0 secs)

npm ERR! Windows_NT 10.0.15063 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\M.S.BIT\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "test" npm ERR! node v6.9.4 npm ERR! npm v4.1.1 npm ERR! code ELIFECYCLE npm ERR! karma_angular2@1.0.0 test: node ./node_modules/karma/bin/karma start --single-run --browsers Chrome npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the karma_angular2@1.0.0 test script 'node ./node_modules/karma/bin/karma start --single-run --browsers Chrome'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the karma_angular2 package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node ./node_modules/karma/bin/karma start --single-run --browsers Chrome npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs karma_angular2 npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls karma_angular2 npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\dev\angular2_karma\npm-debug.log

At the end the problem was that I didn't had any tests and the script would fail. I finally solved it by adding : failOnEmptyTestSuite: false to my karma.conf.js file, so it won't fail the script when there are no tests. Hope it will help in any way.

TomStark16 commented 6 years ago

@ibaraness THANK YOU!