Skip to content

Instantly share code, notes, and snippets.

@stefanjudis
Created June 18, 2014 09:44
Show Gist options
  • Save stefanjudis/bfb5ca9506c08f199cb2 to your computer and use it in GitHub Desktop.
Save stefanjudis/bfb5ca9506c08f199cb2 to your computer and use it in GitHub Desktop.
Go for it simon
/**
* grunt-casperjs configuration
*
* https://npmjs.org/package/grunt-casperjs
*/
'use strict';
module.exports = function () {
return {
dev : {
options : {
async : {
parallel : false
},
casperjsOptions : [
'--url=<%= grunt.config(\'testUrl\') %>',
'--web-security=no',
'--ignore-ssl-errors=yes',
'--xunit=xunit.xml',
'--cookies-file=/tmp/casperjs-cookies.txt'
]
},
src : ['<%= pkg.testing.dir %>/all.js']
},
production : {
options : {
async : {
parallel : false
},
casperjsOptions : [
'--url=<%= grunt.config(\'testUrl\') %>',
'--web-security=no',
'--ignore-ssl-errors=yes',
'--xunit=xunit.xml',
'--cookies-file=/tmp/casperjs-cookies.txt',
'--production=hellYeah!!!!!'
]
},
src : ['<%= pkg.testing.dir %>/all.js']
}
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment