... 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
if (options.test.length && self._helpers.testOnlyOptions[option]) {
if (!options.test && self.testOnlyOptions[option]) {
line 120
if (options.test.length) {
if (options.test) {
Another point: you should allow to use some arguments (as --ignore-ssl-errors to be passed to phantomjs) in test mode.
... 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.