Explorar o código

make casperjs use local phantomjs

Evan You %!s(int64=11) %!d(string=hai) anos
pai
achega
2914926b31
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      build/grunt-tasks/casper.js

+ 3 - 0
build/grunt-tasks/casper.js

@@ -7,6 +7,9 @@ module.exports = function (grunt) {
     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],