Sha256: 06aa4c5b3115f5732f1fe2c87218389dfdaeb9cea0494f49edb575955e2ce8cf
Contents?: true
Size: 777 Bytes
Versions: 6
Compression:
Stored size: 777 Bytes
Contents
var spawn = require('child_process').spawn , exitCode = 0 ; var tests = [ 'test-body.js' , 'test-cookie.js' , 'test-cookiejar.js' , 'test-defaults.js' , 'test-errors.js' , 'test-headers.js' , 'test-httpModule.js' , 'test-https.js' , 'test-https-strict.js' , 'test-oauth.js' , 'test-pipes.js' , 'test-proxy.js' , 'test-qs.js' , 'test-redirect.js' , 'test-timeout.js' , 'test-toJSON.js' , 'test-tunnel.js' ] var next = function () { if (tests.length === 0) process.exit(exitCode); var file = tests.shift() console.log(file) var proc = spawn('node', [ 'tests/' + file ]) proc.stdout.pipe(process.stdout) proc.stderr.pipe(process.stderr) proc.on('exit', function (code) { exitCode += code || 0 next() }) } next()
Version data entries
6 entries across 6 versions & 1 rubygems