fxa-auth-server/scripts/test-remote-quick.js

27 строки
675 B
JavaScript
Executable File

#!/usr/bin/env node
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var path = require('path')
var spawn = require('child_process').spawn
var config = require('../config').getProperties()
var TestServer = require('../test/test_server')
TestServer.start(config, false)
.then(
function (server) {
var cp = spawn(
path.join(path.dirname(__dirname), 'node_modules/.bin/mocha'),
['test/remote'],
{ stdio: 'inherit' }
)
cp.on('close', function(code) {
server.stop()
})
}
)