iamchrismiller / grunt-casper

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

Using options object causes an error #38

Closed thkorte closed 10 years ago

thkorte commented 10 years ago

... because lib/casper.js checks options.test.length if the options object has members. As options.test is supposed to be a (optional) boolean object member this fails wheter it's set or not. Additionally testOnlyOptions is not member of _helpers but of the parent objectt, so this has to be changed too.

fix: line 100

line 120

Another point: you should allow to use some arguments (as --ignore-ssl-errors to be passed to phantomjs) in test mode.

iamchrismiller commented 10 years ago

I reworked the logic a bit. This has been resolved in 0.3.6 and published. Thank you for bringing this to my attention.