nathanboktae / mocha-casperjs

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

Configure phantomjs options #57

Closed fain182 closed 9 years ago

fain182 commented 9 years ago

I need to run some test giving the ssl-protocol configuration option to phantomjs.

Actually i could fix temporarily the problem modifing the https://github.com/nathanboktae/mocha-casperjs/blob/master/bin/mocha-casperjs#L36

$mcPath/../../casperjs/bin/casperjs --ssl-protocol=any $mcPath/cli.js --mocha-casperjs-path=$mcPath/.. $*

But this is obviously a bad solution because I should not change a file of mocha-casperjs, which is the right way to do it?

nathanboktae commented 9 years ago

It will pass all the way through to phantomjs. $* passes all command line options through, then casperjs will pass ssl-protocol through here

Are you saying it doesn't work? did you try it?

fain182 commented 9 years ago

thanks, it worked! Maybe we could add it to the documentation? It seems to me that this information is missing.