arunoda / laika

testing framework for meteor
http://arunoda.github.io/laika/
MIT License
242 stars 38 forks source link

Laika on Windows #108

Open zs-zs opened 10 years ago

zs-zs commented 10 years ago

On Windows, when I try to run the tests for the hello-laika sample I get the following error:

injecting laika...
loading phantomjs...
cleaning up injected code

C:\Users\...\AppData\Roaming\npm\node_modules\laika\lib\app.js:130
    if(err) throw err;
                  ^
Error: spawn ENOENT
    at errnoException (child_process.js:988:11)
    at Process.ChildProcess._handle.onexit (child_process.js:779:34)

(Tested on Windows 8.1)

It seems that it can't start the Meteor server, but I haven't taken any further investigations. Maybe I misconfigured something...(?)

Both the PhantomJS and the Meteor are available on my PATH.

zs-zs commented 10 years ago

Oh I guess it's because on Windows Meteor is a batch file, so you have to start it with meteor.bat, or something like this...

andyp22 commented 10 years ago

I was having this problem and the solution posted by zs-zs in https://github.com/arunoda/laika/pull/110 worked for me.