iamchrismiller / grunt-casper

Run CasperJS Scripts/Functional Tests
Other
69 stars 38 forks source link

Fatal error: spawn ENOENT when running in cygwin #35

Closed rjcoelho closed 10 years ago

rjcoelho commented 10 years ago

We should probably do this somewhere else, but my workaround was to set casperBin to casperjs.exe //Local casperjs dependency path //var casperBin = "./node_modules/.bin/casperjs"; var casperBin = "./node_modules/grunt-casper/node_modules/casperjs/bin/casperjs.exe"; Used 0.3.1

iamchrismiller commented 10 years ago

Oh Windows.. Let me look into this in the next couple of nights and figure out a way to make it work for all platforms.

Thanks for finding this.

iamchrismiller commented 10 years ago

This has been fixed in v0.3.2.

tofumatt commented 10 years ago

Any chance you could publish this version to npmjs? I want to force this version as a minimum in a library whose tests should run on Windows.

rjcoelho commented 10 years ago

Isn't casperjs is installed under grunt-casper ? For me what worked was var casperBin = "./node_modules/grunt-casper/node_modules/casperjs/bin/casperjs" + (isWindows ? ".exe" : "");

iamchrismiller commented 10 years ago

Published v0.3.3, cleaned up the location path handling a bit.

tofumatt commented 10 years ago

Rock on; thanks very much! :-)

rjcoelho commented 10 years ago

Perfect!! thanks :)