nathanboktae / mocha-casperjs

Write CasperJS tests using Mocha
MIT License
120 stars 30 forks source link

Custom path to PhantomJs #37

Closed Jpunt closed 10 years ago

Jpunt commented 10 years ago

In our setup, we can't rely on a globally installed PhantomJs. How can I define a custom path to run Phantom from?

Jpunt commented 10 years ago

Sorry, asked too soon. It's possible to set this using an env-var, like this: PHANTOMJS_EXECUTABLE=/path/to/phantomjs mocha-casperjs test/*

This is enough for me, for now.

nathanboktae commented 10 years ago

Yes what you found is a feature of casper's bin wrappers. In the end it all winds up to a shell execute to phantomjs with parameters to load casper then mocha-casperjs and arguments for all of those.