Running Jenkins Karmage tests on Mac v10.7 Lion

I am trying to configure jenkins CI to run java karma (which in turn runs Jasmine unit tests) on Mac mini with osx Lion.

When I run in from the terminal on the mac, it works well (Starts the karma server on localhost: 9876, opens chrome / safari, runs tests and exits with status 0 when all tests have passed.)

It also works when ssh is launched from windows (SSH on mac and then "karma start myconfigfile.js")

But it does not work correctly when it is launched by jenkins CI:

In jenkins, I have a build step:

Run shell:

#!/bin/bash -ex karma start client/config/ci-unittest.conf.js 

In the jenkis console output, I see that it launches karma correctly, launches the browser, but does not serve all allowed js files, and the browser does not run tests ( Chrome 28.0 (Mac): Executed 0 of 0 DISCONNECTED (0.165 secs / 0 secs )

Here is the console output when it works correctly from the terminal / ssh: http://pastebin.com/2YvbLB1b

And here is the console output from jenkins: http://pastebin.com/tbURAvUt

All I see is that the karma started with jenkins does not serve all allowed files in the browser.

Any ideas what could be wrong?

+4
source share

Source: https://habr.com/ru/post/1491622/


All Articles