I am using Karma for unit testing my JS code & test task is run via gulp with Chrome. Everything works as expected.
I have now done a Jenkins CI integration where gulp test task is called as a batch file, however the build fails with
[33mWARN [launcher]: [39mChrome have not captured in 30000 ms, killing.
[36mDEBUG [launcher]: [39mProcess Chrome exited with code 0
[36mDEBUG [temp-dir]: [39mCleaning temp dir C:\Users\ADMINI~1\AppData\Local\Temp\karma-88920045
[32mINFO [launcher]: [39mTrying to start Chrome again (1/2).
[36mDEBUG [launcher]: [39mRestarting Chrome
[36mDEBUG [temp-dir]: [39mCreating temp dir at C:\Users\ADMINI~1\AppData\Local\Temp\karma-88920045
[36mDEBUG [launcher]: [39mC:\Program Files (x86)\Google\Chrome\Application\chrome.exe --user-data-dir=C:\Users\ADMINI~1\AppData\Local\Temp\karma-88920045 --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate http://localhost:9191/?id=88920045
If I setup PhantomJS the test would run properly via Jenkins, but some of my libraries are incompatible with Phantom.
Is it valid to run Chrome/FF & IE as the browser when Karma is initiated via CI? Any clue on error I am getting?
Thanks