noamtcohen / Narma

Unit test NodeJS with Karma, Jasmine and NW.JS
16 stars 6 forks source link

No captured browser #2

Open mildfuzz opened 8 years ago

mildfuzz commented 8 years ago

Os X El Capitan Node 6.2.1 Karma 0.13.22 Karma cli 1.0.0 Nodewebkit 0.11.6

When running karma start I get

15 06 2016 10:52:25.643:WARN [karma]: No captured browser, open http://localhost:9876/
15 06 2016 10:52:25.654:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/
15 06 2016 10:52:25.655:WARN [launcher]: Can not load "Script", it is not registered!
  Perhaps you are missing some plugin?

I have the correct path in my karma.conf.js

browsers: [
    '/Users/me/Workspace/Narma/bash-launcher.sh'
  ],
mildfuzz commented 8 years ago

The same karma.conf and specs run and pass with PhantomJs as the selected browser.

noamtcohen commented 8 years ago

What happens when you run this command in the terminal?

/Users/me/Workspace/Narma/bash-launcher.sh https://www.google.com
mildfuzz commented 8 years ago

Permission Denies

So then with sudo

command not found

then with sh instead of sudo

[10845:0615/121901:ERROR:breakpad_mac.mm(238)] Breakpad initializaiton
failed
[10846:0615/121901:ERROR:breakpad_mac.mm(238)] Breakpad initializaiton
failed
[10848:0615/121902:ERROR:breakpad_mac.mm(238)] Breakpad initializaiton
failed

On Wed, 15 Jun 2016 at 12:03 noamtcohen notifications@github.com wrote:

What happens when you run this command in the terminal?

/Users/me/Workspace/Narma/bash-launcher.sh https://www.google.com

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/noamtcohen/Narma/issues/2#issuecomment-226155945, or mute the thread https://github.com/notifications/unsubscribe/AAMAYavbggRceoA44bIu4-TdCLn53Z0Zks5qL9wEgaJpZM4I2L1V .

noamtcohen commented 8 years ago

run:

sudo chmod +x /Users/me/Workspace/Narma/bash-launcher.sh
mkdir /Users/me/Workspace/Narma/test
/Users/me/Workspace/Narma/bash-launcher.sh https://www.google.com
mildfuzz commented 8 years ago
[11319:0615/132744:ERROR:breakpad_mac.mm(238)] Breakpad initializaiton failed
[11320:0615/132744:ERROR:breakpad_mac.mm(238)] Breakpad initializaiton failed
[11321:0615/132745:ERROR:breakpad_mac.mm(238)] Breakpad initializaiton failed
mildfuzz commented 8 years ago

same error :(

noamtcohen commented 8 years ago

Lets try to isolate the problem.

Create an empty directory and put bash-launcher.sh in it and create a test dir so that the directory looks like this:

NewTestDirectory
  - bash-launcher.sh
  - test

run:

cd NewTestDirectory
./bash-launcher.sh https://www.google.com
noamtcohen commented 8 years ago

I checked this and I'm getting the same output in the terminal but nodewebkit opens with google.com Do you see nodewebkit with google.com?

mildfuzz commented 8 years ago

Sorry, yes that does work, but the window does not come to the front. Same is not true when I run Karma, sadly

On Wed, 15 Jun 2016 at 13:39 noamtcohen notifications@github.com wrote:

I checked this and I'm getting the same output in the terminal but nodewebkit opens with google.com Do you see nodewebkit with google.com?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/noamtcohen/Narma/issues/2#issuecomment-226174647, or mute the thread https://github.com/notifications/unsubscribe/AAMAYf4Hcv_nsTr6GCbplRoX3gLVqlM2ks5qL_JlgaJpZM4I2L1V .

noamtcohen commented 8 years ago

I'm getting the same error for some reason, I guess it is some update to karma since I haven't used this project for a while.

I see that there is a NodeWebKit launcher on npm: https://www.npmjs.com/package/karma-nodewebkit-launcher https://www.npmjs.com/browse/keyword/karma-launcher

This should be a good alternative. I don't have more time right now to look into this.