Sha256: e379dc6a77607114ece93dc424a46fc946989c705f06a85903c47f0a0eb3d46e

Contents?: true

Size: 599 Bytes

Versions: 11

Compression:

Stored size: 599 Bytes

Contents

// node_modules/serve/bin/serve .
// node_modules/phantomjs/bin/phantomjs tests/phantom.js


var childProcess = require('child_process')
var phantomjs = require('phantomjs')
var path = require('path')
var binPath = phantomjs.path

var childArgs = [
  path.join(__dirname, 'phantom.js')
]

var server = childProcess.spawn('node_modules/serve/bin/serve', ['.'])

var phantomServer = childProcess.spawn(binPath, childArgs)

phantomServer.on('exit', function (code) {
  if (code === 0) {
    console.log('all tests pass. congratulations')
  } else {
    console.log('tests fail')
  }
  server.kill()
})

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
wpa_cli_web-0.0.17 lib/wpa_cli_web/public/bower_components/qwery/tests/test-env.js
wpa_cli_web-0.0.15 lib/wpa_cli_web/public/bower_components/qwery/tests/test-env.js
wpa_cli_web-0.0.14 lib/wpa_cli_web/public/bower_components/qwery/tests/test-env.js
wpa_cli_web-0.0.13 lib/wpa_cli_web/public/bower_components/qwery/tests/test-env.js
wpa_cli_web-0.0.12 lib/wpa_cli_web/public/bower_components/qwery/tests/test-env.js
wpa_cli_web-0.0.11 lib/wpa_cli_web/public/bower_components/qwery/tests/test-env.js
wpa_cli_web-0.0.10 lib/wpa_cli_web/public/bower_components/qwery/tests/test-env.js
wpa_cli_web-0.0.9 lib/wpa_cli_web/public/bower_components/qwery/tests/test-env.js
wpa_cli_web-0.0.8 lib/wpa_cli_web/public/bower_components/qwery/tests/test-env.js
wpa_cli_web-0.0.7 lib/wpa_cli_web/public/bower_components/qwery/tests/test-env.js
wpa_cli_web-0.0.6 lib/wpa_cli_web/public/bower_components/qwery/tests/test-env.js