12345678910111213141516
  1. var spawn = require('child_process').spawn
  2. , server = spawn('node', ['make/tests.js'])
  3. , phantom = spawn('./vendor/phantomjs', ['./phantom.js'])
  4. phantom.stdout.on('data', function (data) {
  5. console.log('stdout: ' + data);
  6. })
  7. phantom.on('exit', function (code, signal) {
  8. var outcome = code == 0 ? 'passed' : 'failed'
  9. console.log('Reqwest tests have %s', outcome, code)
  10. server.kill('SIGHUP')
  11. process.exit(code)
  12. })