Closed adig closed 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.
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)
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#L121I 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