Using Global options and custom destination with Parallel to false make input to be an Arrray.
casper: {
options: {
test: true,
parallel : false,
concurrency : 1,
'log-level' : 'error',
'fail-fast' : false,
concise : false,
engine : 'phantomjs'
},
advancedTest: {
src: ['tests/test_*.js'],
dest : function(input) {
grunt.log.write(Array.isArray(input)); //Will log true
str = input.replace('tests/', '');
return 'tests/results/'+str.replace(/\.js$/,'phs.xml');
}
},
},
Hello,
Using Global options and custom destination with Parallel to false make input to be an Arrray.
Herve-M