Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to integrate Karma with Bamboo

Deleted user June 11, 2015

Usually my "grunt test:client" triggers a Karma Server to be started and my Unit Tests.

 

When running grunt test:client as Bamboo Task, I am getting this output:

 

11-Jun-2015 12:29:48Running "injector:karma" (injector) task
11-Jun-2015 12:29:48Missing option `template`, using `dest` as template instead
11-Jun-2015 12:29:48Injecting js files (52 files)
11-Jun-2015 12:29:48>> Nothing changed
11-Jun-2015 12:29:49 
11-Jun-2015 12:29:49Running "autoprefixer:dist" (autoprefixer) task
11-Jun-2015 12:29:49 
11-Jun-2015 12:29:49Running "coffee:glob_to_multiple" (coffee) task
11-Jun-2015 12:29:49>> 21 files created.
11-Jun-2015 12:29:50 
11-Jun-2015 12:29:50Running "karma:unit" (karma) task
11-Jun-2015 12:29:50Fatal error: connect ECONNREFUSED
11-Jun-2015 12:29:50 
11-Jun-2015 12:29:50 
11-Jun-2015 12:29:50Execution Time (2015-06-11 10:29:46 UTC)
11-Jun-2015 12:29:50loading tasks             95ms  ??? 2%
11-Jun-2015 12:29:50env:test                  41ms  ??? 1%
11-Jun-2015 12:29:50coffee:glob_to_multiple  708ms  ????????????????????? 18%
11-Jun-2015 12:29:50mochaTest:src             1.1s  ????????????????????????????????? 28%
11-Jun-2015 12:29:50injector:scripts          43ms  ??? 1%
11-Jun-2015 12:29:50injector:karma           210ms  ?????? 5%
11-Jun-2015 12:29:50coffee:glob_to_multiple     1s  ?????????????????????????????? 26%
11-Jun-2015 12:29:50karma:unit               681ms  ????????????????????? 17%
11-Jun-2015 12:29:50Total 3.9s

 

This is the to be expected output:

 

Running "coffee:glob_to_multiple" (coffee) task
>> 21 files created.
Running "karma:unit" (karma) task
INFO [karma]: Karma v0.12.32 server started at http://localhost:9126/
INFO [launcher]: Starting browser PhantomJS
INFO [PhantomJS 1.9.8 (Mac OS X)]: Connected on socket S7VZ6KyGOoprNVsXAAAA with id 25621038

Now obvsly it cant start the server. Any ideas how to fix? Also I then want to move to creating a reporter-ready, consumable XML or JSON file, but that is probably for another thread.

1 answer

4 votes
Magestican Mizuten December 1, 2015

Seriously, could you guys at atlasian make karma with phantom run okay? I am also having issues where it says that the phantom server cannot start during the build proces using bamboo :/

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events