iamchrismiller / grunt-casper

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

Fix issue #34 "CasperJS Binary Not Found" when running task #44

Closed ebourmalo closed 10 years ago

ebourmalo commented 10 years ago

Fix issue #34, thanks to @abeadam for the fix

iamchrismiller commented 10 years ago

Thank you for the pull request @ebourmalo, I actually took a similar approach and allowed the casperjs executable path to be exported similar to how I am handling PhantomJS. If there isn't a process.env.CASPERJS_EXECUTABLE ="/path/to/casper" set then it falls back to the local ./node_modules directory and then back to the global /usr/local/lib/node_modules directory. This is now stated in the README. Let me know if you run into any issues or have any other suggestions.

ebourmalo commented 10 years ago

Ok, glad to hear it :) Thank you for this update @iamchrismiller