Karma, PhantomJS Issue

Dante Dubon's Avatar

Dante Dubon

15 May, 2015 05:03 PM

I have a issue when I am trying to run my mocha specs with karma on PhantomJS, but I have the following error message:

INFO [PhantomJS 1.9.8 (Windows 8)]: Connected on socket BvkQixJ_lvRj-1_ddCFD with id 25485425
PhantomJS 1.9.8 (Windows 8): Executed 0 of 0 SUCCESS (0 secs / 0 secs)
PhantomJS 1.9.8 (Windows 8): Executed 0 of 0 ERROR (0.015 secs / 0 secs)
 =============================== Coverage summary ===============================
Statements   : 39.81% ( 246/618 )
Branches     : 2.17% ( 2/92 )
Functions    : 19.05% ( 36/189 )
Lines        : 40.8% ( 246/603 )
 ==============================================================================
Karma completed!
[16:41:59] 'test-for-build' errored after 5.18 s
[16:41:59] Error: karma: tests failed with code 1
  at formatError (C:\Program Files (x86)\nodejs\node_modules\gulp\bin\gulp.js:169:10)
  at Gulp.<anonymous> (C:\Program Files (x86)\nodejs\node_modules\gulp\bin\gulp.js:195:15)
  at Gulp.emit (events.js:117:20)
  at Gulp.Orchestrator._emitTaskDone (C:\projects\invio-banks\src\InvioBankPortal.Web\Client\node_modules\gulp\node_modules\orchestrator\index.js:264:8)
  at C:\projects\invio-banks\src\InvioBankPortal.Web\Client\node_modules\gulp\node_modules\orchestrator\index.js:275:23
  at finish (C:\projects\invio-banks\src\InvioBankPortal.Web\Client\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:21:8)
  at cb (C:\projects\invio-banks\src\InvioBankPortal.Web\Client\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:29:3)
  at karmaCompleted ([object Object]:261:13)
  at removeAllListeners (C:\projects\invio-banks\src\InvioBankPortal.Web\Client\node_modules\karma\lib\server.js:220:7)
  at Server.<anonymous> (C:\projects\invio-banks\src\InvioBankPortal.Web\Client\node_modules\karma\lib\server.js:231:9)
  at Server.g (events.js:180:16)
  at Server.emit (events.js:117:20)
  at net.js:1277:10
  at process._tickCallback (node.js:448:13)


[16:41:59] 'serve-release' errored after 8.93 s [16:41:59] Error: [object Object] at formatError (C:\Program Files (x86)\nodejs\node_modules\gulp\bin\gulp.js:169:10) at Gulp.<anonymous> (C:\Program Files (x86)\nodejs\node_modules\gulp\bin\gulp.js:195:15) at Gulp.emit (events.js:117:20) at Gulp.Orchestrator._emitTaskDone (C:\projects\invio-banks\src\InvioBankPortal.Web\Client\node_modules\gulp\node_modules\orchestrator\index.js:264:8) at C:\projects\invio-banks\src\InvioBankPortal.Web\Client\node_modules\gulp\node_modules\orchestrator\index.js:275:23 at finish (C:\projects\invio-banks\src\InvioBankPortal.Web\Client\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:21:8) at cb (C:\projects\invio-banks\src\InvioBankPortal.Web\Client\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:29:3) at finish (C:\projects\invio-banks\src\InvioBankPortal.Web\Client\node_modules\run-sequence\index.js:53:5) at Gulp.onError (C:\projects\invio-banks\src\InvioBankPortal.Web\Client\node_modules\run-sequence\index.js:60:4) at Gulp.emit (events.js:117:20) at Gulp.Orchestrator._emitTaskDone (C:\projects\invio-banks\src\InvioBankPortal.Web\Client\node_modules\gulp\node_modules\orchestrator\index.js:264:8) at C:\projects\invio-banks\src\InvioBankPortal.Web\Client\node_modules\gulp\node_modules\orchestrator\index.js:275:23 at finish (C:\projects\invio-banks\src\InvioBankPortal.Web\Client\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:21:8) at cb (C:\projects\invio-banks\src\InvioBankPortal.Web\Client\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:29:3) at karmaCompleted ([object Object]:261:13) at removeAllListeners (C:\projects\invio-banks\src\InvioBankPortal.Web\Client\node_modules\karma\lib\server.js:220:7) at Server.<anonymous> (C:\projects\invio-banks\src\InvioBankPortal.Web\Client\node_modules\karma\lib\server.js:231:9) at Server.g (events.js:180:16) at Server.emit (events.js:117:20) at net.js:1277:10 at process._tickCallback (node.js:448:13)

On my appveyor.yml I am installing globally the following:

  - npm -g install npm@2
  - npm install -g node-inspector bower gulp typescript tsd phantomjs tslint karma karma-cli
Thanks for your support
  1. Support Staff 1 Posted by Feodor Fitsner on 15 May, 2015 05:17 PM

    Feodor Fitsner's Avatar

    Well, there are mentions of this error on the internet:
    http://stackoverflow.com/questions/26614738/issue-running-karma-tas...
    https://github.com/johnpapa/generator-hottowel/issues/57

    Also, you may try running against Chrome which works in AV environment:
    https://ci.appveyor.com/project/FeodorFitsner/angular-seed

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:56 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac