Sha256: d4b4604135348a80e9b8a566b260ccf0eb6e8c7532ace62779e351e9f9e2136a
Contents?: true
Size: 771 Bytes
Versions: 3
Compression:
Stored size: 771 Bytes
Contents
/** * Run e2e tests with CasperJS. */ module.exports = function (grunt) { grunt.registerTask('casper', function (id) { var path = require('path') var done = this.async() var file = id ? id + '.js' : '' // let casperjs use local phantomjs process.env.PHANTOMJS_EXECUTABLE = '../../node_modules/karma-phantomjs-launcher/node_modules/.bin/phantomjs' grunt.util.spawn({ cmd: '../../node_modules/.bin/casperjs', args: ['test', '--concise', './' + file], opts: { stdio: ['ignore', process.stdout, 'ignore'], cwd: path.resolve('test/e2e') } }, function (err, res) { if (err) grunt.fail.fatal(res.stdout || 'CasperJS test failed') grunt.log.writeln(res.stdout) done() }) }) }
Version data entries
3 entries across 3 versions & 1 rubygems