iamchrismiller / grunt-casper

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

Allow arguments in test mode #40

Closed adig closed 10 years ago

adig commented 10 years ago

I've stumbled on this issue when trying to fix an issue on https://github.com/mozilla/localForage which uses grunt-casper for tests.

Their tests are using arguments, and there is a Arguments not supported ins test mode warning showing up from here : https://github.com/iamchrismiller/grunt-casper/blob/master/tasks/lib/casper.js#L121

I haven't found anything in the casper documentation that tells that arguments aren't available in test mode, so I've tried removing the condition and the arguments are passed successfully.

Thanks

tofumatt commented 10 years ago

:+1: This would be very useful for the casperjs tests we run. It was surprising that it didn't just error out or display a message when run with grunt.

iamchrismiller commented 10 years ago

I went back through the docs and was unable to find the section around restricting test args. So I have removed the blocker. This has been published to npm (0.3.8)