Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error starting a test with testacular

I am trying out the angularjs tutorials on a 64 bit Windows 7 system because I find this framework quite interesting from what I read on its home page. I am a newbie to node.js and not experienced in Java-Script.

When running the tests, I get the following error. Can anybody find out what the problem is or give some hints how to determine that? I have a fresh Installation of node and added testacular with

npm install -g testacular

which worked fine from what was printed on the console window.

So here is the error message:

PS C:\Users\xx\Documents\Angular\angular-phonecat> .\scripts\test.bat
INFO [testacular]: Testacular server started at http://localhost:9876/
INFO [launcher]: Starting browser Chrome
ERROR [testacular]: { [Error: spawn ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn' }
Error: spawn ENOENT
    at errnoException (child_process.js:948:11)
    at Process.ChildProcess._handle.onexit (child_process.js:739:34)

like image 929
CSharper Avatar asked Apr 06 '13 12:04

CSharper


1 Answers

Short answer: Set env variable CHROME_BIN to full path to chrome.exe

The error msg is confusing, as the behavior of spawn got changed in Node 0.10, we need to update it (https://github.com/karma-runner/karma/issues/452)

like image 164
Vojta Avatar answered Nov 20 '22 07:11

Vojta